File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,8 @@ statements: statements statement | statement ;
64
64
assignment : id_name ASSIGN_OP expression ;
65
65
66
66
/* If statement */
67
- if_statement : IF_KW expression THEN_KW tail | IF_KW expression THEN_KW tail else_if_part optional_else_part ;
68
- else_if_part : else_if_part ELSE_KW IF_KW expression tail | ELSE_KW IF_KW expression tail ;
69
- optional_else_part : ELSE_KW tail | /* empty */ ;
70
- tail : statements FI_KW ;
67
+ if_statement : IF_KW expression THEN_KW statements FI_KW | IF_KW expression THEN_KW statements ELSE_KW statements optional_else_part FI_KW ;
68
+ optional_else_part : ELSE_KW statements | /* empty */ ;
71
69
72
70
/* while statement */
73
71
while_statement : WHILE_KW expression LOOP_KW statements POOL_KW ;
You can’t perform that action at this time.
0 commit comments