aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2024-05-26 22:16:29 +0100
committerJuan J. Martinez <jjm@usebox.net>2024-05-26 22:16:29 +0100
commitcab079eabf46df9a2816e72f2d5132fdba7b5062 (patch)
tree6d441e4300588475038de0e4a20655ef3cb00a66
parent16825c1f6cb8aada73b6c3a9ce1af4a85041b880 (diff)
downloadfunco-cab079eabf46df9a2816e72f2d5132fdba7b5062.tar.gz
funco-cab079eabf46df9a2816e72f2d5132fdba7b5062.zip
Also lists, so anything that is not a Token
-rwxr-xr-xfunco2
1 files changed, 1 insertions, 1 deletions
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