chrisguitarguy / plot
没有理由用PHP编写的Lisp语言
dev-master
2014-12-24 23:46 UTC
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: ~4.3
This package is auto-updated.
Last update: 2024-09-23 06:33:17 UTC
README
没有理由用PHP编写的方案。
示例
use Chrisguitarguy\Plot\Plot; $prog = <<<EOF (define say-hello! (lambda (name) (println! "Hello," name))) (say-hello! "Plot") (+ 1 2 3) EOF; $plot = new Plot(); $result = $plot->evaluateString($prog); var_dump($result); // int(6), the result of the last s-expression is returned