summaryrefslogtreecommitdiff
path: root/server/src/parser
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/parser')
-rw-r--r--server/src/parser/ast.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/parser/ast.lua b/server/src/parser/ast.lua
index 2c434511..9bd406b7 100644
--- a/server/src/parser/ast.lua
+++ b/server/src/parser/ast.lua
@@ -112,7 +112,8 @@ local defs = {
for i = 2, #args, 2 do
op, e2 = args[i], args[i+1]
e1 = {
- type = op,
+ type = 'binary',
+ op = op,
[1] = e1,
[2] = e2,
}
@@ -129,7 +130,8 @@ local defs = {
for i = #args - 1, 1, -1 do
op = args[i]
e1 = {
- type = op,
+ type = 'unary',
+ op = op,
[1] = e1,
}
end