From 87e52cea59c5ae090e95971c88dbcb77632a0535 Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Thu, 2 Dec 2021 10:49:27 +0000 Subject: [PATCH] Include binop and unop definition from 5.1 --- docs/_pages/grammar.md | 3 +++ 1 file changed, 3 insertions(+) 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