Documentation ¶
Overview ¶
Package parser attempts to organise tokens into an AST
Index ¶
Constants ¶
View Source
const ( // LOWEST represents lowest precedence LOWEST int // EQUALS : == EQUALS // LESSGREATER : > or < LESSGREATER // SUM : + SUM // PRODUCT : * PRODUCT // PREFIX : -X or !X PREFIX // CALL : myFunction(X) CALL // INDEX : 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 attempts to make sense of tokens
func (*Parser) ParseProgram ¶
ParseProgram parses an entire proram into an AST
Click to show internal directories.
Click to hide internal directories.