mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Include binop and unop definition from 5.1
This commit is contained in:
parent
7c100ca949
commit
87e52cea59
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue