mirror of
https://github.com/peklaiho/madlisp.git
synced 2024-11-22 21:35:03 +00:00
18 lines
238 B
PHP
18 lines
238 B
PHP
|
<?php
|
||
|
|
||
|
require('lisp.php');
|
||
|
|
||
|
while (true) {
|
||
|
$input = readline('> ');
|
||
|
|
||
|
print('% ');
|
||
|
|
||
|
try {
|
||
|
ml_rep($input);
|
||
|
} catch (MadLispException $ex) {
|
||
|
print('error: ' . $ex->getMessage());
|
||
|
}
|
||
|
|
||
|
print(PHP_EOL);
|
||
|
}
|