add assignments

This commit is contained in:
nora 2021-11-03 21:04:11 +01:00
parent 63c9d5300c
commit 0b79d4500d
3 changed files with 78 additions and 8 deletions

View file

@ -13,13 +13,13 @@
| <break-stmt>
| <return-stmt>
| <block>
| <expression-statement>
<declaration> ::= "let" <IDENT> "=" <expression> ";"
<assignment> ::= { call "." } <IDENT> "=" <expression> ";"
| <expression> ";"
<fn-decl> ::= "fn" <IDENT> <fn-args> <block>