From 8e7cea5ebe6e41b817bda532ad077013f12bb4e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 18 Dec 2018 14:11:57 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/parser/grammar.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua index 4c087024..c76fe1f1 100644 --- a/server/src/parser/grammar.lua +++ b/server/src/parser/grammar.lua @@ -120,7 +120,7 @@ IF <- Sp 'if' Cut IN <- Sp 'in' Cut LOCAL <- Sp 'local' Cut NIL <- Sp 'nil' Cut -NOT <- Sp {'not'} Cut +NOT <- Sp 'not' Cut OR <- Sp {'or'} Cut REPEAT <- Sp 'repeat' Cut RETURN <- Sp 'return' Cut @@ -170,7 +170,7 @@ MulsList <- '*' / '/' / '%' Unary <- Sp {UnaryList} -UnaryList <- 'not' +UnaryList <- NOT / '#' / '-' / '~' -- cgit v1.2.3