peaceful-bit / slate-lang
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (v0.1) of this package.
My small interpreter of lisp-like code written on PHP.
v0.1
2016-11-02 12:48 UTC
Requires
- docopt/docopt: ^1.0
- nerd-components/common-functions: dev-master
Requires (Dev)
- phpunit/phpunit: ^5.6
- satooshi/php-coveralls: ^1.0
- squizlabs/php_codesniffer: ^2.7
This package is not auto-updated.
Last update: 2023-04-29 12:04:21 UTC
README
My implementation of lisp-like language interpreter written on PHP.
Installation
$ composer global require peaceful-bit/slate-lang
Usage
$ slate program.st
$ cat program.st | slate -s
Code example
; Define constant
(def pi 3.14)
; Define function
(def (square-of-circle r) (* pi (pow r 2)))
; Call function
(print (square-of-circle 15))