mirror of
https://github.com/peklaiho/madlisp.git
synced 2024-11-22 21:35:03 +00:00
17 lines
278 B
PHP
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);
|
|
}
|