mirror of
https://github.com/peklaiho/madlisp.git
synced 2024-11-26 07:04:27 +00:00
18 lines
292 B
PHP
18 lines
292 B
PHP
<?php
|
|
require('bootstrap.php');
|
|
|
|
$env = ml_get_env();
|
|
$lisp = new MadLisp\Lisp();
|
|
|
|
while (true) {
|
|
$input = readline('> ');
|
|
|
|
try {
|
|
$lisp->rep($input, $env);
|
|
} catch (MadLisp\MadLispException $ex) {
|
|
print('error: ' . $ex->getMessage());
|
|
}
|
|
|
|
print(PHP_EOL);
|
|
}
|