diff options
Diffstat (limited to 'server-beta/src/parser/grammar.lua')
-rw-r--r-- | server-beta/src/parser/grammar.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server-beta/src/parser/grammar.lua b/server-beta/src/parser/grammar.lua index 8c491c64..944f34ea 100644 --- a/server-beta/src/parser/grammar.lua +++ b/server-beta/src/parser/grammar.lua @@ -295,10 +295,11 @@ DirtyName <- {} -> DirtyName ]] grammar 'Exp' [[ -Exp <- (UnUnit (BinaryOp (UnUnit / {} -> MissExp))*) - -> Exp +Exp <- (UnUnit (BinaryOp UnUnit / BinaryOp->None MissExp)*) + -> Binary UnUnit <- ExpUnit - / UnaryOp+ (ExpUnit / {} -> DirtyExp) + / (UnaryOp+ (ExpUnit / MissExp)) + -> Unary ExpUnit <- Nil / Boolean / String |