ProtectedcurrentThe 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
ProtectedadditionProtectedadvanceProtectedanonymousProtectedargsParses 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.
ProtectedassignmentProtectedblockProtectedbracketHandles the parsing of vector literals and range literals.
ProtectedcheckProtectedcomparsionProtectedconsumeProtectedconsumeConsumes 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.
OptionaltrailingArr: Token[]ProtectedequalityParses the '==' and '!=' operators.
ProtectedexponentiationParses b ^ e.
ProtectedexpressionProtectedfinishProtectedforParses arguments from the 'for' loop comprehension. The initial paren must be consumed. Stops on semicolon or right paren, but does not consume them.
ProtectedfunctionProtectedgetProtectedifProtectedisProtectedlistProtectedlistProtectedlistProtectedlogicalParses the '&&' operators
ProtectedlogicalParses the '||' operators
ProtectedmatchProtectedmatchRest...toMatch: TokenType[]ProtectedmemberProtectedmoduleProtectedmoduleProtectedmultiplicationProtectedpeekProtectedpeekProtectedpreviousProtectedprimaryProtectedsingleProtectedstatementParses 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.
ProtectedsynchronizeProtectedternaryParses the ternary '? :' expression
ProtectedunaryParses +expr, -expr and !expr.
The code file being parsed.