Commit 4b5ef176 authored by Jamie A. Jennings's avatar Jamie A. Jennings

Fixed an issue in insert_seq_operators(). Is fix this the best way to go?

parent 3f9077a4
......@@ -104,7 +104,7 @@ function insert_seq_operators(exps)
local succ = exps[i+1]
if item.type=="operator" or is_atmosphere(item) then
-- no op
elseif succ and succ.type~="operator" then
elseif succ and (succ.type~="operator" and not is_atmosphere(succ)) then
{type = "operator",
s = item.e,
......@@ -227,7 +227,8 @@ local function make_prefix_tree(op, exps)
print("right operand: "); table.print(right)
print("left operand: "); table.print(left)
assert( right[1] and left[1] )
assert(right[1], "missing right operand for: " ..
assert(left[1], "missing left operand for: " ..
op.subs = list.append(left, right)
-- Convert generic "operator" nodes to choice, sequence, or and_exp
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment