Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Lowest represents the lowest operator precedence Lowest int // Logical represents the logical AND and OR operators Logical // Equals represents the equals comparison operator Equals // LessGreater represents the LT, GT, LTE, and GTE operators LessGreater // Sum represents the addition operator Sum // Product represents the multiplication operator Product // Prefix represents prefix operators such as Minus or Bang Prefix // Call represents function calls Call // Index represents array indexes Index )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser represents the parser component of the interpreter
func (*Parser) ParseProgram ¶
ParseProgram runs through all thr tokens and parses them as statements or expressions
Click to show internal directories.
Click to hide internal directories.