chrisguitarguy/plot

A Lisp written in PHP for no good reason


Keywords
lisp
License
MIT

Documentation

Plot

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