From 10b07148ba8efec543ded60a4b7916960709ce1e Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Sat, 7 Mar 2015 09:04:07 -0600 Subject: All step0: add test, fix bugs, remove step0 eval. --- python/step0_repl.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'python/step0_repl.py') diff --git a/python/step0_repl.py b/python/step0_repl.py index d915989..3e5801b 100644 --- a/python/step0_repl.py +++ b/python/step0_repl.py @@ -7,12 +7,8 @@ def READ(str): # eval def EVAL(ast, env): - # try it as an expression then a statement - try: - return eval(ast) - except SyntaxError: - exec(compile(ast, '', 'single'), globals()) - return None + #print("EVAL %s" % printer._pr_str(ast)) + return ast # print def PRINT(exp): -- cgit v1.2.3