Documentation
¶
Index ¶
Constants ¶
View Source
const ( LOWEST int EQUALS // == LESSGREATER // > or < SUM // + PRODUCT // * PREFIX // -X or !X CALL // myFunction(X) INDEX // myArray[index] )
Operator precedences, assigned incrementally using iota
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser parses a Monkey Lang string into an executable program statements
func (*Parser) ParseProgram ¶
ParseProgram parses the input Monkey Lang string and returns an AST Program node
Click to show internal directories.
Click to hide internal directories.