diff options
| author | mryouse | 2022-05-10 04:27:12 +0000 |
|---|---|---|
| committer | mryouse | 2022-05-10 04:27:12 +0000 |
| commit | 12a2caa02af85f91f862d87ab0b518020751197c (patch) | |
| tree | 954257414d225ba729f727cc8e472c6441ff99e0 /runner.py | |
| parent | db5564306399f0a3af97eb13808140542aa5b42c (diff) | |
make the literals print nicely
Diffstat (limited to 'runner.py')
| -rw-r--r-- | runner.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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}'") |
