Fixed grammar for if statements by using `statement` reference

This commit is contained in:
Tristan B. Velloza Kildaire 2023-01-04 11:24:24 +02:00
parent fbe581cba9
commit a5ce0a3f5a
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ oparen := "("
cparen := ")"
ocurly := "{"
ccurly := "}"
if := "if" oparen expr cparen ocurly body ccurly {"else" if } | "else" body
if := "if" oparen expr cparen ocurly { statement } ccurly {"else" if } | "else" { statement }
```