Merge pull request #217 from dubek/lua-interop
[jackhill/mal.git] / nim / step6_file.nim
index 6718319..eee3a95 100644 (file)
@@ -34,6 +34,7 @@ proc eval(ast: MalType, env: var Env): MalType =
 
   while true:
     if ast.kind != List: return ast.eval_ast(env)
+    if ast.list.len == 0: return ast
 
     let a0 = ast.list[0]
     case a0.kind