better errors

This commit is contained in:
nora 2021-10-31 12:55:39 +01:00
parent c6e5a5d686
commit 67e6dfccc2
4 changed files with 152 additions and 43 deletions

View file

@ -66,7 +66,8 @@
<unary> ::= { ( "not" | "-" ) } <primary>
<primary> ::= <NUMBER>
<primary> ::= <IDENT>
| <NUMBER>
| <STRING>
| <object-literal>
| <array-literal>