diff options
| author | Joel Martin <github@martintribe.org> | 2015-02-11 21:56:47 -0600 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2015-02-11 21:56:47 -0600 |
| commit | c1fe72ae2b94d37cbf027aa185c27307d9776c56 (patch) | |
| tree | 6826d1941743bf7d450b538bbcae86fb6749b8e9 /miniMAL/step0_repl.json | |
| parent | ff26ebdb816da07b28b29073868994fc7eabf8d1 (diff) | |
| download | mal-c1fe72ae2b94d37cbf027aa185c27307d9776c56.tar.gz mal-c1fe72ae2b94d37cbf027aa185c27307d9776c56.zip | |
miniMAL: step1.
Diffstat (limited to 'miniMAL/step0_repl.json')
| -rw-r--r-- | miniMAL/step0_repl.json | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/miniMAL/step0_repl.json b/miniMAL/step0_repl.json new file mode 100644 index 0000000..6599930 --- /dev/null +++ b/miniMAL/step0_repl.json @@ -0,0 +1,21 @@ +["do", + +["load-file", ["`", "miniMAL-core.json"]], + +["def", "READ", ["fn", ["strng"], + "strng"]], + +["def", "EVAL", ["fn", ["ast", "env"], + "ast"]], + +["def", "PRINT", ["fn", ["exp"], + "exp"]], + +["def", "rep", ["fn", ["strng"], + ["PRINT", ["EVAL", ["READ", "strng"], null]]]], + +["repl", ["`", "user> "], "rep"], + +null + +] |
