diff options
author | Juan J. Martinez <jjm@usebox.net> | 2024-05-26 22:16:29 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2024-05-26 22:16:29 +0100 |
commit | cab079eabf46df9a2816e72f2d5132fdba7b5062 (patch) | |
tree | 6d441e4300588475038de0e4a20655ef3cb00a66 | |
parent | 16825c1f6cb8aada73b6c3a9ce1af4a85041b880 (diff) | |
download | funco-cab079eabf46df9a2816e72f2d5132fdba7b5062.tar.gz funco-cab079eabf46df9a2816e72f2d5132fdba7b5062.zip |
Also lists, so anything that is not a Token
-rwxr-xr-x | funco | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |