igorw/ilias
Composer 安装命令:
composer require igorw/ilias
包简介
Naive LISP implementation in PHP.
关键字:
README 文档
README
Naive LISP implementation in PHP. For something more complete, check out Lisphp.
Check out the s-expression blog posts explaining the implementation of Ilias.
Usage
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:
int(3)
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 23
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-11-30