Merge pull request #55 from Servostar/37-add-parser-rule-for-while
added while parser rule
This commit is contained in:
commit
0c9c5f37b4
|
@ -90,6 +90,7 @@ statementlist: statement statementlist
|
||||||
statement: assign
|
statement: assign
|
||||||
| decl
|
| decl
|
||||||
| definition
|
| definition
|
||||||
|
| while
|
||||||
| branch
|
| branch
|
||||||
| funcall;
|
| funcall;
|
||||||
|
|
||||||
|
@ -103,6 +104,8 @@ branchelseifs: branchelseifs branchelseif
|
||||||
branch: branchif branchelseifs
|
branch: branchif branchelseifs
|
||||||
| branchif branchelseifs branchelse;
|
| branchif branchelseifs branchelse;
|
||||||
|
|
||||||
|
while: KeyWhile expr '{' statementlist '}' { DEBUG("while"); };
|
||||||
|
|
||||||
identlist: Ident ',' identlist
|
identlist: Ident ',' identlist
|
||||||
| Ident;
|
| Ident;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue