From cab079eabf46df9a2816e72f2d5132fdba7b5062 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 26 May 2024 22:16:29 +0100 Subject: Also lists, so anything that is not a Token --- funco | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funco b/funco index ed2b02c..c6d0299 100755 --- a/funco +++ b/funco @@ -363,7 +363,7 @@ def eval(x, env): return fn(*args) except Exception as ex: error(f"{x.ident.pos}: {ex}") - elif x is not None: + elif isinstance(x, Token): return x.value else: return x -- cgit v1.2.3