From 96f1845afdb816515bba83ad4bb8fee6bc466557 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Fri, 2 Jan 2015 23:33:50 -0600 Subject: Misc cleanup. Move *host-language* to stepA. --- ruby/step9_try.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'ruby/step9_try.rb') diff --git a/ruby/step9_try.rb b/ruby/step9_try.rb index eecba9c..74d0f59 100644 --- a/ruby/step9_try.rb +++ b/ruby/step9_try.rb @@ -155,7 +155,6 @@ repl_env.set(:eval, lambda {|ast| EVAL(ast, repl_env)}) repl_env.set(:"*ARGV*", List.new(ARGV.slice(1,ARGV.length) || [])) # core.mal: defined using the language itself -RE["(def! *host-language* \"ruby\")"] RE["(def! not (fn* (a) (if a false true)))"] RE["(def! load-file (fn* (f) (eval (read-string (str \"(do \" (slurp f) \")\")))))"] RE["(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)))))))"] @@ -167,7 +166,6 @@ if ARGV.size > 0 end # repl loop -RE["(println (str \"Mal [\" *host-language* \"]\"))"] while line = _readline("user> ") begin puts REP[line] -- cgit v1.2.3