|
void | Advance (int advanceCount=1) |
| Advances to the next Token object in _tokens.
|
|
void | Reverse (int reverseCount=1) |
| Reverses back to the Token object at _index - reverseCount in _tokens.
|
|
Token | PeekPrevious () |
| Peeks at the previous Token object from _index in _tokens.
|
|
Token | PeekNext (int advanceCount=1) |
| Peeks at the next Token object from _index in _tokens.
|
|
void | BinaryOperation (Action left, Action right, TokenType[] operators,(TokenType Type, Action OnCase)? specialCase=null) |
| Tries creating a BinaryOperationNode.
|
|
void | ParseStatements () |
| Tries parsing a 'statements' structure.
|
|
void | ParseStatement () |
| Tries parsing a 'statement' structure.
|
|
void | ParseExpression (bool itemKeywordRequired=false) |
| Tries parsing an 'expression' structure.
|
|
void | ParseQuickExpression (bool itemKeywordRequired=false) |
| Tries parsing a 'quick-expression' structure.
|
|
void | ParseJunction () |
| Tries parsing a 'junction' structure.
|
|
void | ParseInversion () |
| Tries parsing an 'inversion' structure.
|
|
void | ParseContainsCheck () |
| Tries parsing a 'contains-check' structure.
|
|
void | ParseComparison () |
| Tries parsing a 'comparison' structure.
|
|
void | ParseBitwiseOr () |
| Tries parsing a 'bitwise-or' structure.
|
|
void | ParseBitwiseXOr () |
| Tries parsing a 'bitwise-xor' structure.
|
|
void | ParseBitwiseAnd () |
| Tries parsing a 'bitwise-and' structure.
|
|
void | ParseBitwiseShift () |
| Tries creating a 'bitwise-shift' structure.
|
|
void | ParseArithmeticExpression () |
| Tries parsing an 'arithmetic-expression' structure.
|
|
void | ParseTerm () |
| Tries parsing a 'term' structure.
|
|
void | ParseFactor () |
| Tries parsing a 'factor' structure.
|
|
void | ParsePower () |
| Tries parsing a 'power' structure.
|
|
void | ParseObjectAttributeAccess () |
| Tries parsing an 'object-attribute-access' structure.
|
|
void | ParseCall () |
| Tries parsing a 'call' structure.
|
|
void | ParseAtom () |
| Tries parsing a 'atom' structure.
|
|
void | ParseArrayOrParentheticalExpression () |
| Tries parsing an array, an ArrayLikeNode with ArrayLikeNode.CreateList set to false OR a parenthetical expression. Starts from _currentToken, which should be of TokenType TokenType.LeftParenthesis.
|
|
void | ParseList () |
| Tries parsing a list, an ArrayLikeNode with ArrayLikeNode.CreateList set to true . Starts from _currentToken, which should be of TokenType TokenType.LeftSquareBracket.
|
|
void | ParseDictionary () |
| Tries parsing a dictionary. Starts from _currentToken, which should be of TokenType TokenType.LeftCurlyBracket.
|
|
void | ParseIfExpression () |
| Tries parsing an if expression. Starts from _currentToken, which should be of TokenType TokenType.KeywordIf.
|
|
void | ParseCountExpression () |
| Tries parsing a count expression. Starts from _currentToken, which should be of TokenType TokenType.KeywordCount.
|
|
void | ParseWhileExpression () |
| Tries parsing a while expression. Starts from _currentToken, which should be of TokenType TokenType.KeywordWhile.
|
|
void | ParseTryExpression () |
| Tries parsing a try expression. Starts from _currentToken, which should be of TokenType TokenType.KeywordTry.
|
|
void | ParseFunctionDefinitionExpression () |
| Tries parsing a function definition expression. Starts from _currentToken, which should be of TokenType TokenType.KeywordFunction.
|
|
void | ParseClassDefinitionExpression () |
| Tries parsing an class definition expression. Starts from _currentToken, which should be of TokenType TokenType.KeywordObject.
|
|
void | ParseIncludeExpression () |
| Tries parsing an include expression. Starts from _currentToken, which should be of TokenType TokenType.KeywordInclude.
|
|
void | ParseDefineBlockExpression () |
| Tries parsing a define block expression. Starts from _currentToken, which should be of TokenType TokenType.KeywordDefine.
|
|
The ezr² Parser. The job of the Parser is to convert the input Token objects from the Lexer into Node objects to be given as the input to the Runtime.Interpreter.Interpreter.