aboutsummaryrefslogtreecommitdiff
path: root/runner.py
diff options
context:
space:
mode:
authormryouse2022-05-10 04:27:12 +0000
committermryouse2022-05-10 04:27:12 +0000
commit12a2caa02af85f91f862d87ab0b518020751197c (patch)
tree954257414d225ba729f727cc8e472c6441ff99e0 /runner.py
parentdb5564306399f0a3af97eb13808140542aa5b42c (diff)
make the literals print nicely
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}'")