Merge pull request #380 from bjh21/bjh21-bbc-basic
[jackhill/mal.git] / io / step3_env.io
index b7d0683..c8d0c07 100644 (file)
@@ -21,6 +21,7 @@ eval_ast := method(ast, env,
 
 EVAL := method(ast, env,
     if(ast type != "MalList", return(eval_ast(ast, env)))
+    if(ast isEmpty, return ast)
     if(ast at(0) type == "MalSymbol",
         ast at(0) val switch(
             "def!",