REPL

.. . the “read-eval-print” loop as often found in LISP dialects

((loop (print (eval (read)))))

.. or perl

perl -e 'print "\n> "; while(<>){print eval($_) . "\n> ";}'