aboutsummaryrefslogtreecommitdiff
path: root/runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'runner.py')
-rw-r--r--runner.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/runner.py b/runner.py
index 0d8560e..1023473 100644
--- a/runner.py
+++ b/runner.py
@@ -12,8 +12,7 @@ def evaluate(items, pop):
if nxt is None:
return pop
elif isinstance(nxt, NebLiteral):
- pop = nxt.value
- return evaluate(items[1:], pop)
+ return evaluate(items[1:], nxt)
elif isinstance(nxt, NebSymbol):
if not nxt.name in STD:
raise Exception(f"no such symbol: '{nxt.name}'")