Skip to content

Instantly share code, notes, and snippets.

@epitron
Last active August 29, 2015 14:14
Show Gist options
  • Save epitron/4a67602ee0e69c5f1e66 to your computer and use it in GitHub Desktop.
Save epitron/4a67602ee0e69c5f1e66 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'readline'
while line = Readline.readline("crystal> ")
line = %{puts "=> \#{(#{line}).inspect}"}
system("crystal", "eval", line)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment