diff --git a/grammar.txt b/grammar.txt index af792bd..c00d4f6 100644 --- a/grammar.txt +++ b/grammar.txt @@ -22,12 +22,12 @@ ::= "let" "=" ";" - ::= "=" ";" + ::= { call "." } "=" ";" ::= "fn" - ::= "(" { { "," } } ")" + ::= "(" ")" ::= "if" { } @@ -66,7 +66,7 @@ ::= { ( "not" | "-" ) } - ::= ( "(" { "," } ")" | "." ) + ::= { ( "(" ")" | "." ) } ::= | @@ -78,6 +78,11 @@ | "null" | "(" ")" - = "{}" + ::= "{}" - = "[" { { "," } } "]" + ::= "[" "]" + + + ::= { { "," } { "," } } + + ::= { { "," } { "," } } \ No newline at end of file