fix top level

This commit is contained in:
nora 2021-10-31 12:29:17 +01:00
parent 9837713771
commit c6e5a5d686
5 changed files with 68 additions and 39 deletions

View file

@ -1,9 +1,11 @@
# todo: calls (property access and function calls)
<program> ::= <block>
<program> ::= <statement-list>
<block> ::= "{" { <statement> } "}"
<statement-list> ::= { <statement> }
<block> ::= "{" <statement-list> "}"
<statement> ::= <declaration>
| <assignment>