HCoop
/
jackhill
/
mal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf500f7
)
process: Fix step2_eval.txt to "handle" empty literal lists
author
Dov Murik
<dov.murik@gmail.com>
Sun, 3 Apr 2016 03:18:30 +0000
(23:18 -0400)
committer
Dov Murik
<dov.murik@gmail.com>
Sun, 3 Apr 2016 03:18:30 +0000
(23:18 -0400)
process/step2_eval.txt
patch
|
blob
|
blame
|
history
diff --git
a/process/step2_eval.txt
b/process/step2_eval.txt
index
beb5500
..
9cd2e08
100644
(file)
--- a/
process/step2_eval.txt
+++ b/
process/step2_eval.txt
@@
-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)