Parser
Inherits Lexer < Reference < Object
Instance methods
accept(type : TokenType)
Check if the current token matches the given type and return truthy if it does. Additionally, if the type matches, automatically advance to the next significant token.
advance
Advance through the token stream until a significant token is encountered. This abstraction allows the rest of the parser to quietly ignore whitespace and other insignificant tokens.
instructions
The list of instructions parsed from the source code. This is what will be fed to the interpreter.
The list of instructions parsed from the source code. This is what will be fed to the interpreter.
parse_assignment
Sourceparse_expr
Sourceparse_factor
Sourceparse_program
Sourceparse_statement
Sourceparse_term
Source