madlisp/repl.php
Pekka Laiho 2b73c245b2 start
2020-05-26 15:43:59 +07:00

18 lines
238 B
PHP

<?php
require('lisp.php');
while (true) {
$input = readline('> ');
print('% ');
try {
ml_rep($input);
} catch (MadLispException $ex) {
print('error: ' . $ex->getMessage());
}
print(PHP_EOL);
}