dev-master
9999999-devNaive LISP implementation in PHP.
MIT
The Requires
- php >=5.4.0
by Igor Wiedler
lisp
dev-autoload
dev-autoloadNaive LISP implementation in PHP.
MIT
The Requires
- php >=5.4.0
by Igor Wiedler
lisp
Naive LISP implementation in PHP.
Naive LISP implementation in PHP. For something more complete, check out Lisphp., (*1)
Check out the s-expression blog posts explaining the implementation of Ilias., (*2)
use Igorw\Ilias\Program; use Igorw\Ilias\Lexer; use Igorw\Ilias\Reader; use Igorw\Ilias\FormTreeBuilder; use Igorw\Ilias\Walker; use Igorw\Ilias\Environment; $program = new Program( new Lexer(), new Reader(), new FormTreeBuilder(), new Walker() ); $env = Environment::standard(); $value = $program->evaluate($env, '(+ 1 2)'); var_dump($value);
will output:, (*3)
int(3)
Naive LISP implementation in PHP.
MIT
lisp
Naive LISP implementation in PHP.
MIT
lisp