From 12a2caa02af85f91f862d87ab0b518020751197c Mon Sep 17 00:00:00 2001 From: mryouse Date: Tue, 10 May 2022 04:27:12 +0000 Subject: make the literals print nicely --- runner.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'runner.py') 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}'") -- cgit v1.2.3