aboutsummaryrefslogtreecommitdiff
path: root/miniMAL/step3_env.json
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2015-02-15 22:04:45 -0600
committerJoel Martin <github@martintribe.org>2015-02-15 22:04:45 -0600
commitf618f6a11c661a74e5805a75b51815a0cafebaaf (patch)
tree4bb059e6346da66336783d12a69c9e162a497097 /miniMAL/step3_env.json
parent1981bf5766d9bb75a652cc781b817cc3150d12ef (diff)
downloadmal-f618f6a11c661a74e5805a75b51815a0cafebaaf.tar.gz
mal-f618f6a11c661a74e5805a75b51815a0cafebaaf.zip
miniMAL: step8.
Diffstat (limited to 'miniMAL/step3_env.json')
-rw-r--r--miniMAL/step3_env.json28
1 files changed, 14 insertions, 14 deletions
diff --git a/miniMAL/step3_env.json b/miniMAL/step3_env.json
index 9b45277..353c3dd 100644
--- a/miniMAL/step3_env.json
+++ b/miniMAL/step3_env.json
@@ -25,20 +25,20 @@
["def", "EVAL", ["fn", ["ast", "env"],
["if", ["not", ["list?", "ast"]],
- ["eval-ast", "ast", "env"],
- ["let", ["a0", ["get", ["first", "ast"], ["`", "val"]]],
- ["if", ["=", ["`", "def!"], "a0"],
- ["env-set", "env", ["nth", "ast", 1],
- ["EVAL", ["nth", "ast", 2], "env"]],
- ["if", ["=", ["`", "let*"], "a0"],
- ["let", ["let-env", ["env-new", "env"]],
- ["do",
- ["LET", "let-env", ["nth", "ast", 1]],
- ["EVAL", ["nth", "ast", 2], "let-env"]]],
- ["let", ["el", ["eval-ast", "ast", "env"],
- "f", ["first", "el"],
- "args", ["rest", "el"]],
- ["apply", "f", "args"]]]]]]]],
+ ["eval-ast", "ast", "env"],
+ ["let", ["a0", ["get", ["first", "ast"], ["`", "val"]]],
+ ["if", ["=", ["`", "def!"], "a0"],
+ ["env-set", "env", ["nth", "ast", 1],
+ ["EVAL", ["nth", "ast", 2], "env"]],
+ ["if", ["=", ["`", "let*"], "a0"],
+ ["let", ["let-env", ["env-new", "env"]],
+ ["do",
+ ["LET", "let-env", ["nth", "ast", 1]],
+ ["EVAL", ["nth", "ast", 2], "let-env"]]],
+ ["let", ["el", ["eval-ast", "ast", "env"],
+ "f", ["first", "el"],
+ "args", ["rest", "el"]],
+ ["apply", "f", "args"]]]]]]]],
["def", "PRINT", ["fn", ["exp"],
["pr-str", "exp", true]]],