diff options
| author | Joel Martin <github@martintribe.org> | 2015-01-02 23:33:50 -0600 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2015-01-09 16:16:55 -0600 |
| commit | 96f1845afdb816515bba83ad4bb8fee6bc466557 (patch) | |
| tree | 6fd8d7949ba26863d17122160a488db216fd1b81 /r | |
| parent | f522319598c701efde91a78b07110d7039a8c906 (diff) | |
| download | mal-96f1845afdb816515bba83ad4bb8fee6bc466557.tar.gz mal-96f1845afdb816515bba83ad4bb8fee6bc466557.zip | |
Misc cleanup. Move *host-language* to stepA.
Diffstat (limited to 'r')
| -rw-r--r-- | r/step9_try.r | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/r/step9_try.r b/r/step9_try.r index e699048..02a6507 100644 --- a/r/step9_try.r +++ b/r/step9_try.r @@ -166,7 +166,6 @@ Env.set(repl_env, "eval", function(ast) EVAL(ast, repl_env)) Env.set(repl_env, "*ARGV*", new.list()) # core.mal: defined using the language itself -. <- rep("(def! *host-language* \"R\")") . <- rep("(def! not (fn* (a) (if a false true)))") . <- rep("(def! load-file (fn* (f) (eval (read-string (str \"(do \" (slurp f) \")\")))))") . <- rep("(defmacro! cond (fn* (& xs) (if (> (count xs) 0) (list 'if (first xs) (if (> (count xs) 1) (nth xs 1) (throw \"odd number of forms to cond\")) (cons 'cond (rest (rest xs)))))))") @@ -184,7 +183,6 @@ if (length(args) > 0) { quit(save="no", status=0) } -. <- rep("(println (str \"Mal [\" *host-language* \"]\"))") repeat { line <- readline("user> ") if (is.null(line)) { cat("\n"); break } |
