diff options
Diffstat (limited to 'miniMAL')
| -rw-r--r-- | miniMAL/miniMAL-core.json | 9 | ||||
| -rw-r--r-- | miniMAL/step0_repl.json | 8 |
2 files changed, 9 insertions, 8 deletions
diff --git a/miniMAL/miniMAL-core.json b/miniMAL/miniMAL-core.json index c22376a..25ee914 100644 --- a/miniMAL/miniMAL-core.json +++ b/miniMAL/miniMAL-core.json @@ -101,10 +101,11 @@ ["println", ["rep", "line"]], ["cb"]]]], "opts", {"ignoreUndefined": true, - "terminal": false}, - "opts", ["assoc!", "opts", ["`", "prompt"], "prompt"], - "opts", ["assoc!", "opts", ["`", "eval"], "evl"]], - [".", "r", ["`", "start"], "opts"]]]], + "terminal": false}], + ["do", + [".-", "opts", ["`", "prompt"], "prompt"], + [".-", "opts", ["`", "eval"], "evl"], + [".", "r", ["`", "start"], "opts"]]]]], null ] diff --git a/miniMAL/step0_repl.json b/miniMAL/step0_repl.json index 6599930..50f8846 100644 --- a/miniMAL/step0_repl.json +++ b/miniMAL/step0_repl.json @@ -3,16 +3,16 @@ ["load-file", ["`", "miniMAL-core.json"]], ["def", "READ", ["fn", ["strng"], - "strng"]], + "strng"]], ["def", "EVAL", ["fn", ["ast", "env"], - "ast"]], + "ast"]], ["def", "PRINT", ["fn", ["exp"], - "exp"]], + "exp"]], ["def", "rep", ["fn", ["strng"], - ["PRINT", ["EVAL", ["READ", "strng"], null]]]], + ["PRINT", ["EVAL", ["READ", "strng"], null]]]], ["repl", ["`", "user> "], "rep"], |
