mirror of
https://github.com/peklaiho/madlisp.git
synced 2024-11-26 07:04:27 +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);
|
|
}
|