Include binop and unop definition from 5.1

This commit is contained in:
JohnnyMorganz 2021-12-02 10:49:27 +00:00
parent 7c100ca949
commit 87e52cea59

View file

@ -34,6 +34,9 @@ asexp ::= simpleexp [`::' typeannotation]
simpleexp ::= NUMBER | STRING | NIL | true | false | ... | constructor | FUNCTION body | primaryexp simpleexp ::= NUMBER | STRING | NIL | true | false | ... | constructor | FUNCTION body | primaryexp
args ::= `(' [explist] `)' | tableconstructor | String args ::= `(' [explist] `)' | tableconstructor | String
binop ::= `+' | `-' | `*' | `/' | `^' | `%' | `..' | `<' | `<=' | `>' | `>=' | `==' | `~=' | and | or
unop ::= `-' | not | `#´
tableconstructor ::= `{' [fieldlist] `}' tableconstructor ::= `{' [fieldlist] `}'
fieldlist ::= field {fieldsep field} [fieldsep] fieldlist ::= field {fieldsep field} [fieldsep]
field ::= `[' exp `]' `=' exp | Name `=' exp | exp field ::= `[' exp `]' `=' exp | Name `=' exp | exp