Skip to content

Commit

Permalink
added elif to grammar (syntax.txt)
Browse files Browse the repository at this point in the history
  • Loading branch information
GassaFM committed Mar 16, 2023
1 parent bd469dc commit 427b401
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions syntax.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,9 @@ for <name> := <expression0> until <expression0> : \n <statement-list>
<if-block> is
if <expression0> : \n <statement-list>
if <expression0> : \n <statement-list> \n else \n <statement-list>
if <expression0> : \n <statement-list> \n <elif-block>

<elif-block> is
elif <expression0> : \n <statement-list>
elif <expression0> : \n <statement-list> \n else \n <statement-list>
elif <expression0> : \n <statement-list> \n <elif-block>

0 comments on commit 427b401

Please sign in to comment.