Documentation
¶
Overview ¶
Package parser is used to parse input-programs written in monkey and convert them to an abstract-syntax tree.
Index ¶
Constants ¶
View Source
const ( LOWEST int COND // OR or AND ASSIGN // = TERNARY // ? : EQUALS // == or != REGEXP_MATCH // !~ ~= LESSGREATER // > or < SUM // + or - PRODUCT // * or / POWER // ** MOD // % PREFIX // -X or !X CALL // myFunction(X) DOTDOT // .. INDEX // array[index], map[key] HIGHEST )
precedence order
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser object
func (*Parser) ParseProgram ¶
ParseProgram used to parse the whole program
Click to show internal directories.
Click to hide internal directories.