From 86b689f3d7111a9fa13da389a30f3dfdf877d1a4 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Sat, 19 Apr 2014 13:04:09 -0500 Subject: All: *ARGV* and *host-language*. Misc syncing/fixes. --- python/step2_eval.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/step2_eval.py') diff --git a/python/step2_eval.py b/python/step2_eval.py index a5061dc..8af09b1 100644 --- a/python/step2_eval.py +++ b/python/step2_eval.py @@ -28,7 +28,7 @@ def eval_ast(ast, env): return ast # primitive value, return unchanged def EVAL(ast, env): - #print("EVAL %s" % ast) + #print("EVAL %s" % printer._pr_str(ast)) if not types._list_Q(ast): return eval_ast(ast, env) @@ -50,6 +50,7 @@ repl_env['-'] = lambda a,b: a-b repl_env['*'] = lambda a,b: a*b repl_env['/'] = lambda a,b: int(a/b) +# repl loop while True: try: line = mal_readline.readline("user> ") -- cgit v1.2.3