.. . 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> ";}'
  • repl.txt
  • Last modified: 2007-07-10 15:45
  • by 192.168.1.81