madlisp/repl.php
Pekka Laiho adc6ab99c3 classes
2020-05-28 11:55:58 +07:00

18 lines
284 B
PHP

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