Documentation
¶
Index ¶
Constants ¶
View Source
const ( PrecendenceLowest int PrecedenceEquals PrecedenceLessGreater PrecedenceSum PrecedenceProduct PrecedencePrefix PrecedenceCall PrecedencePostFix )
ordering for expression evaluation
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParseError ¶
type ParseError struct {
// contains filtered or unexported fields
}
Represents an error that occured while parsing
func (ParseError) Error ¶
func (pe ParseError) Error() string
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
The parser itself. Stores the current state of the parser
func (*Parser) Errors ¶
func (p *Parser) Errors() []ParseError
Returns any errors that occured during parsing
func (*Parser) ParseProgram ¶
Parses the entire program, returning the abstract syntax tree
Click to show internal directories.
Click to hide internal directories.