Minimum Viable REPL

A REPL, or ‘read–eval–print loop’ is a simple interactive shell. You can create one very simply in Ruby:

loop { print(eval(gets)) }

You can run it directly from the command line:

ruby -e "loop { print(eval(gets)) }"