parser

package
v0.0.0-...-6eb16da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument interface {
	fmt.Stringer
	// contains filtered or unexported methods
}

type Handler

type Handler interface {
	HandleLabel(name string) error
	HandleOperation(cond neon.Condition, op string, args []Argument) error
	Finalize() error
}

type Label

type Label string

func (Label) String

func (l Label) String() string

type Literal

type Literal int

func (Literal) String

func (l Literal) String() string

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func New

func New(s *scanner.Scanner, h Handler) *Parser

func (*Parser) ParseArgument

func (p *Parser) ParseArgument() (Argument, error)

func (*Parser) ParseFile

func (p *Parser) ParseFile() error

func (*Parser) ParseStatement

func (p *Parser) ParseStatement() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL