# This is a small REPL for Nila to test out nila code and do bug fixes require 'readline' rl = readline.createInterface(process.stdin, process.stdout) rl.setPrompt('nila> ') rl.prompt() read = rl.on 'line', do |line| case line.trim() when 'hello' puts "world!" else puts "Say what? I might have heard #{line.trim()}" end rl.prompt() end read.on 'close', do puts "Have a great day!" process.exit(0) end