Merge pull request #55 from Servostar/37-add-parser-rule-for-while

added while parser rule
This commit is contained in:
Filleo 2024-05-08 13:20:16 +02:00 committed by GitHub
commit 0c9c5f37b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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;