aboutsummaryrefslogtreecommitdiffstats
path: root/Parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'Parser.h')
-rw-r--r--Parser.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Parser.h b/Parser.h
index 52a374e0..343a85c0 100644
--- a/Parser.h
+++ b/Parser.h
@@ -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();