diff options
Diffstat (limited to 'Parser.h')
-rw-r--r-- | Parser.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -59,6 +59,8 @@ private: ASTPointer<Statement> parseStatement(); ASTPointer<IfStatement> parseIfStatement(); ASTPointer<WhileStatement> parseWhileStatement(); + ASTPointer<ForStatement> parseForStatement(); + ASTPointer<ASTNode> parseVardefOrExprstatement(); ASTPointer<VariableDefinition> parseVariableDefinition(); ASTPointer<ExpressionStatement> parseExpressionStatement(); ASTPointer<Expression> parseExpression(); @@ -72,6 +74,10 @@ private: ///@{ ///@name Helper functions + /// Peeks ahead in the scanner to determine if an expression statement + /// could be a variable definition + bool peekVariableDefinition(); + /// If current token value is not _value, throw exception otherwise advance token. void expectToken(Token::Value _value); Token::Value expectAssignmentOperator(); |