mirror of
https://github.com/peklaiho/madlisp.git
synced 2024-11-25 14:44:27 +00:00
Mirror of https://github.com/peklaiho/madlisp
bin | ||
mad | ||
src | ||
test | ||
.gitignore | ||
composer.json | ||
LICENSE | ||
phpunit.xml | ||
README.md |
MadLisp
MadLisp is a Lisp interpreter written in PHP.
Requirements
The project requires PHP 7.4 or newer and Composer.
Quickstart
Create a new directory and require the project using composer:
$ mkdir mylisp
$ cd mylisp
$ composer require "maddy83/madlisp dev-master"
Use the vendor/bin/madlisp
executable to start the interpreter. Start the REPL with the -r
option:
$ vendor/bin/madlisp -r
>
You can evaluate Lisp code interactively inside the REPL:
> (+ 1 2 3)
6
Alternatively you can evaluate a file that contains Lisp code:
$ echo "(+ 1 2 3)" > mylisp.mad
$ vendor/bin/madlisp mylisp.mad
6
Documentation
The full documentation is available on the project website.