add else
and elif
to the grammar
This commit is contained in:
parent
4b52f663c6
commit
7c286f2261
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ decorated-decl = pragma (proc-decl / symbol-decl)
|
|||
|
||||
; Statements
|
||||
while-stmt = "while" expr *stmt "end"
|
||||
if-expr = "if" expr *stmt "end"
|
||||
elif-else = ["elif" expr *stmt] ["else" *stmt]
|
||||
if-expr = "if" expr *stmt elif-else "end"
|
||||
break-expr = "break" [expr]
|
||||
return-stmt = "return" [expr]
|
||||
yield-stmt = "yield" [expr]
|
||||
|
|
Loading…
Add table
Reference in a new issue