aboutsummaryrefslogtreecommitdiff
path: root/runner.py
diff options
context:
space:
mode:
authormryouse2022-05-12 01:58:05 +0000
committermryouse2022-05-12 01:58:05 +0000
commitd75ab6f5ef14cab3c2ad3841258656e217d36043 (patch)
treefdc1a44b17f5611168c4c7a28ed47f92a4ddaad0 /runner.py
parentbb09a338814e1ab6e77451a0cedf61341a4d75c8 (diff)
refactor types using inheritance
Diffstat (limited to 'runner.py')
-rw-r--r--runner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/runner.py b/runner.py
index 69112c5..f9c8a4d 100644
--- a/runner.py
+++ b/runner.py
@@ -17,7 +17,7 @@ def evaluate(items, pop):
if not nxt.name in STD:
raise Exception(f"no such symbol: '{nxt.name}'")
this_func = STD[nxt.name]
- return evaluate(items[1:], this_func[list(this_func.keys())[0]].impl) # TODO show all
+ return evaluate(items[1:], this_func[0].impl) # TODO show all
elif isinstance(nxt, NebExpression):
return evaluate(items[1:], evaluate_expression(nxt))
else: