madlisp/repl.php
2020-05-28 17:10:00 +07:00

18 lines
287 B
PHP

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