From d75ab6f5ef14cab3c2ad3841258656e217d36043 Mon Sep 17 00:00:00 2001 From: mryouse Date: Thu, 12 May 2022 01:58:05 +0000 Subject: refactor types using inheritance --- runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runner.py') 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: -- cgit v1.2.3