From b1e83ba1388aa7205af1f717beb2a7b477bf6cd7 Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Sat, 4 Dec 2021 11:07:27 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com> --- docs/_pages/grammar.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_pages/grammar.md b/docs/_pages/grammar.md index 15bf2900..0208a1a8 100644 --- a/docs/_pages/grammar.md +++ b/docs/_pages/grammar.md @@ -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] `}'