aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
Diffstat (limited to 'interpreter.py')
-rw-r--r--interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py
index a4bba6d..67a6682 100644
--- a/interpreter.py
+++ b/interpreter.py
@@ -100,7 +100,7 @@ def interpret(exprs, env=GLOBALS):
return ret
def evaluate(expr, env):
- if isinstance(expr, Literal):
+ if isinstance(expr, Literal) or isinstance(expr, Function):
#return expr.value
return expr
elif isinstance(expr, Symbol):