Documentation
¶
Index ¶
Constants ¶
View Source
const ( LOWEST int ASSIGN_PREC NULLISH_COALESCE LOGICAL_OR LOGICAL_AND BIT_OR BIT_XOR BIT_AND EQUALS LESSGREATER BIT_SHIFT SUM RANGE_PREC PRODUCT POWER PREFIX CALL INDEX POSTFIX )
Operator precedence levels.
Variables ¶
This section is empty.
Functions ¶
func LineContext ¶
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser produces an AST from a token stream.
func (*Parser) InitBlocks ¶
func (p *Parser) InitBlocks() []*ast.InitStatement
InitBlocks returns the init blocks collected during parsing.
func (*Parser) ParseProgram ¶
ParseProgram parses the full input and returns the root AST node.
type ParserState ¶
type ParserState struct {
// contains filtered or unexported fields
}
ParserState captures the parser's position for back-tracking.
Click to show internal directories.
Click to hide internal directories.