HCoop
/
jackhill
/
mal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #217 from dubek/lua-interop
[jackhill/mal.git]
/
nim
/
step6_file.nim
diff --git
a/nim/step6_file.nim
b/nim/step6_file.nim
index
6718319
..
eee3a95
100644
(file)
--- a/
nim/step6_file.nim
+++ b/
nim/step6_file.nim
@@
-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