diff --git a/docs/_pages/grammar.md b/docs/_pages/grammar.md index e9b175dd..0e63a9a5 100644 --- a/docs/_pages/grammar.md +++ b/docs/_pages/grammar.md @@ -34,6 +34,9 @@ asexp ::= simpleexp [`::' typeannotation] simpleexp ::= NUMBER | STRING | NIL | true | false | ... | constructor | FUNCTION body | primaryexp args ::= `(' [explist] `)' | tableconstructor | String +binop ::= `+' | `-' | `*' | `/' | `^' | `%' | `..' | `<' | `<=' | `>' | `>=' | `==' | `~=' | and | or +unop ::= `-' | not | `#ยด + tableconstructor ::= `{' [fieldlist] `}' fieldlist ::= field {fieldsep field} [fieldsep] field ::= `[' exp `]' `=' exp | Name `=' exp | exp