madlisp/README.md

52 lines
973 B
Markdown
Raw Permalink Normal View History

2020-06-11 10:13:00 +00:00
# MadLisp
MadLisp is a [Lisp](https://en.wikipedia.org/wiki/Lisp_%28programming_language%29) interpreter written in PHP.
2020-06-12 10:03:26 +00:00
2020-06-11 10:13:00 +00:00
## Requirements
The project requires PHP 7.4 or newer and [Composer](https://getcomposer.org/).
2020-06-17 11:10:33 +00:00
## Quickstart
2020-06-17 11:10:33 +00:00
Create a new directory and require the project using composer:
```text
$ mkdir mylisp
$ cd mylisp
$ composer require peklaiho/madlisp
```
Use the `vendor/bin/madlisp` executable to start the interpreter. Start the REPL with the `-r` option:
```text
$ vendor/bin/madlisp -r
>
```
You can evaluate Lisp code interactively inside the REPL:
```text
> (+ 1 2 3)
6
```
Alternatively you can evaluate a file that contains Lisp code:
```text
$ echo "(+ 1 2 3)" > mylisp.mad
$ vendor/bin/madlisp mylisp.mad
6
```
## Documentation
2020-06-12 09:42:00 +00:00
The full [documentation](http://madlisp.com/) is available on the project website.
2020-06-12 09:42:00 +00:00
2023-02-05 01:16:52 +00:00
## Status
The language seems stable at this point so I am releasing it as 1.0. Please report any issues.
2020-06-11 10:13:00 +00:00
## License
MIT