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
|
||||
| decl
|
||||
| definition
|
||||
| while
|
||||
| branch
|
||||
| funcall;
|
||||
|
||||
|
@ -103,6 +104,8 @@ branchelseifs: branchelseifs branchelseif
|
|||
branch: branchif branchelseifs
|
||||
| branchif branchelseifs branchelse;
|
||||
|
||||
while: KeyWhile expr '{' statementlist '}' { DEBUG("while"); };
|
||||
|
||||
identlist: Ident ',' identlist
|
||||
| Ident;
|
||||
|
||||
|
|
Loading…
Reference in New Issue