Sha256: 4bae397674f51d555b38ab7b9c90e972b9173a631dbb4f897453288e92542329
Contents?: true
Size: 525 Bytes
Versions: 4
Compression:
Stored size: 525 Bytes
Contents
#!/usr/bin/env ruby require "bundler/setup" require "turmali" require "readline" interpreter = Interpreter.new if file = ARGV.first interpreter.eval File.read(file) else puts "Turmali (#{Turmali::VERSION}) REPL, Type 'quit' or 'exit' to exit" loop do line = Readline::readline(">> ") exit if line == 'quit' exit if line == 'exit' Readline::HISTORY.push(line) value = interpreter.eval(line) puts "=> #{value.ruby_value.inspect}" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
turmali-0.0.5 | bin/tml |
turmali-0.0.4 | bin/tml |
turmali-0.0.3 | bin/tml |
turmali-0.0.2 | bin/tml |