Skip to content

Commit c269ce8

Browse files
committed
🌐 updating grammar
1 parent 5f8d38a commit c269ce8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

grammar.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ statement : compound_statement
2828
| assignment_statement
2929
| repeat_until
3030
| for_loop
31+
| for_loop
3132
| empty
3233
3334
function_call : id LPAREN (factor (factor COLON)* )* RPAREN (COLON type_spec){0,1}
@@ -42,6 +43,8 @@ repeat_until : REPEAT statement UNTIL condition
4243
4344
for_loop : FOR variable ASSIGN expression TO expression DO statement
4445
46+
for_loop : WHILE condition DO statement
47+
4548
assignment_statement : variable ASSIGN expr
4649
4750
empty :

0 commit comments

Comments
 (0)