Protected
currentThe ErrorCollector for this parser. All the errors encountered by the parser will be put there, since it does not throw on non-fatal errors.
The tokens being parsed. They have to be provided from the lexer
Protected
additionProtected
advanceProtected
anonymousProtected
argsParses an argument list including the finishing paren. Can handle trailing and extra commas as well as an empty arguments list. The initial paren must be consumed.
Set to true when in call mode, positional arguments will be allowed.
Protected
assignmentProtected
blockProtected
bracketHandles the parsing of vector literals and range literals.
Protected
checkProtected
comparsionProtected
consumeProtected
consumeConsumes redundant commas and returns true if it consumed any.
You can also pass an array of tokens to which all the comma tokens will be pushed.
Optional
trailingArr: Token[]Protected
equalityParses the '==' and '!=' operators.
Protected
exponentiationParses b ^ e.
Protected
expressionProtected
finishProtected
forParses arguments from the 'for' loop comprehension. The initial paren must be consumed. Stops on semicolon or right paren, but does not consume them.
Protected
functionProtected
getProtected
ifProtected
isProtected
listProtected
listProtected
listProtected
logicalParses the '&&' operators
Protected
logicalParses the '||' operators
Protected
matchProtected
matchRest
...toMatch: TokenType[]Protected
memberProtected
moduleProtected
moduleProtected
multiplicationProtected
peekProtected
peekProtected
previousProtected
primaryProtected
singleProtected
statementParses a statement, including use
and include
when isAtRoot is set to true.
whther we are parsing a statement in the root of the file, set to false inside blocks or modules.
Protected
synchronizeProtected
ternaryParses the ternary '? :' expression
Protected
unaryParses +expr, -expr and !expr.
The code file being parsed.