diff options
Diffstat (limited to 'grammar.txt')
-rw-r--r-- | grammar.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/grammar.txt b/grammar.txt index a26f717a..99a59001 100644 --- a/grammar.txt +++ b/grammar.txt @@ -20,6 +20,7 @@ Statement = IfStatement | WhileStatement | Block | IfStatement = 'if' '(' Expression ')' Statement ( 'else' Statement )? WhileStatement = 'while' '(' Expression ')' Statement +ForStatement = 'for' '(' Expressionstatement Expression Expressionstatement ')' Statement Continue = 'continue' ';' Break = 'break' ';' Return = 'return' Expression? ';' |