aboutsummaryrefslogtreecommitdiff
path: root/ruby/step0_repl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/step0_repl.rb')
-rw-r--r--ruby/step0_repl.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/ruby/step0_repl.rb b/ruby/step0_repl.rb
index dd32b27..21d534a 100644
--- a/ruby/step0_repl.rb
+++ b/ruby/step0_repl.rb
@@ -1,4 +1,5 @@
-require "readline"
+$: << File.expand_path(File.dirname(__FILE__))
+require "mal_readline"
# read
def READ(str)
@@ -20,6 +21,6 @@ def REP(str)
return PRINT(EVAL(READ(str), {}))
end
-while line = Readline.readline("user> ", true)
+while line = _readline("user> ")
puts REP(line)
end