process: Fix step2_eval.txt to "handle" empty literal lists
authorDov Murik <dov.murik@gmail.com>
Sun, 3 Apr 2016 03:18:30 +0000 (23:18 -0400)
committerDov Murik <dov.murik@gmail.com>
Sun, 3 Apr 2016 03:18:30 +0000 (23:18 -0400)
process/step2_eval.txt

index beb5500..9cd2e08 100644 (file)
@@ -12,6 +12,7 @@ eval_ast(ast,env):
 
 EVAL(ast,env):
     if not list?(ast): return eval_ast(ast, env)
+    if empty?(ast): return ast
     f, args = eval_ast(ast, env)
     return apply(f, args)