From 86b689f3d7111a9fa13da389a30f3dfdf877d1a4 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Sat, 19 Apr 2014 13:04:09 -0500 Subject: All: *ARGV* and *host-language*. Misc syncing/fixes. --- ruby/step5_tco.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ruby/step5_tco.rb') diff --git a/ruby/step5_tco.rb b/ruby/step5_tco.rb index e2fe5e7..6be04ae 100644 --- a/ruby/step5_tco.rb +++ b/ruby/step5_tco.rb @@ -90,11 +90,11 @@ REP = lambda {|str| PRINT(EVAL(READ(str), repl_env)) } # core.rb: defined using ruby $core_ns.each do |k,v| repl_env.set(k,v) end -repl_env.set(:eval, lambda {|ast| EVAL(ast, repl_env)}) # core.mal: defined using the language itself RE["(def! not (fn* (a) (if a false true)))"] +# repl loop while line = _readline("user> ") begin puts REP[line] -- cgit v1.2.3