chrisguitarguy / plot
A Lisp written in PHP for no good reason
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-10-23 06:43:58 UTC
README
A scheme written in PHP for no good reason.
Example
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