madlisp/repl.php
2020-05-30 18:47:54 +07:00

17 lines
278 B
PHP

<?php
require('bootstrap.php');
list($lisp, $env) = ml_get_lisp();
while (true) {
$input = readline('> ');
try {
$lisp->rep($input, $env);
} catch (MadLisp\MadLispException $ex) {
print('error: ' . $ex->getMessage());
}
print(PHP_EOL);
}