mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Apply suggestions from code review
Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>
This commit is contained in:
parent
3965e13510
commit
b1e83ba138
1 changed files with 2 additions and 2 deletions
|
@ -34,14 +34,14 @@ explist ::= {exp `,'} exp
|
|||
namelist ::= NAME {`,' NAME}
|
||||
|
||||
binding ::= NAME [`:' TypeAnnotation]
|
||||
bindinglist ::= (binding | `...') [`,' bindinglist]
|
||||
bindinglist ::= binding [`,' bindinglist]
|
||||
|
||||
exp ::= (asexp | unop exp) { binop exp }
|
||||
ifelseexp ::= if exp then exp {elseif exp then exp} else exp
|
||||
prefixexp ::= NAME | '(' exp ')'
|
||||
primaryexp ::= prefixexp { `.' NAME | `[' exp `]' | `:' NAME funcargs | funcargs }
|
||||
asexp ::= simpleexp [`::' TypeAnnotation]
|
||||
simpleexp ::= NUMBER | STRING | nil | true | false | ... | tableconstructor | function body | primaryexp | ifelseexp
|
||||
simpleexp ::= NUMBER | STRING | nil | true | false | `...' | tableconstructor | function body | primaryexp | ifelseexp
|
||||
funcargs ::= `(' [explist] `)' | tableconstructor | STRING
|
||||
|
||||
tableconstructor ::= `{' [fieldlist] `}'
|
||||
|
|
Loading…
Add table
Reference in a new issue