Documentation
¶
Index ¶
Constants ¶
View Source
const ( // LOWEST is the lowest precedence operator LOWEST int // EQUALS is == EQUALS // LESSGREATER is > or < LESSGREATER // SUM is + SUM // PRODUCT is * PRODUCT // PREFIX is -x or !x PREFIX // CALL is myFn(x) CALL // INDEX is array[index] INDEX )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser contains the lexer and parses tokens one at a time, generating an AST
func (*Parser) ParseProgram ¶
ParseProgram generates an AST based on the tokens
Click to show internal directories.
Click to hide internal directories.