maddy83/madlisp

This package is abandoned and no longer maintained. The author suggests using the peklaiho/madlisp package instead.

Lisp interpreter for the MadLisp language.

v1.0.1 2024-05-18 06:02 UTC

This package is auto-updated.

Last update: 2024-05-18 06:05:20 UTC


README

MadLisp is a Lisp interpreter written in PHP.

This package was renamed from maddy83/madlisp to peklaiho/madlisp and moved from Bitbucket to Github. Please transition to using the other package instead of this!

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

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.

Status

The language seems stable at this point so I am releasing it as 1.0. Please report any issues.

License

MIT