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 #406 from chr15m/lib-alias-hacks
[jackhill/mal.git]
/
process
/
step8_macros.txt
diff --git
a/process/step8_macros.txt
b/process/step8_macros.txt
index
29f5bdf
..
b84b73a
100644
(file)
--- a/
process/step8_macros.txt
+++ b/
process/step8_macros.txt
@@
-22,6
+22,7
@@
EVAL(ast,env):
ast = macroexpand(ast, env)
if not list?(ast): return eval_ast(ast, env)
+ if empty?(ast): return ast
switch ast[0]:
'def!: return env.set(ast[1], EVAL(ast[2], env))