GitHub - shikaan/lifp: ☯️ A Lisp dialect and toolchain. All in one binary.

2 min read Original article ↗

logo

lifp

A Lisp dialect and toolchain. All in one binary.

Warning

This is very young and highly unstable. Don't take it too seriously.

Quick start

Installation

MacOS and Linux

sudo sh -c "curl -s https://shikaan.github.io/sup/install | REPO=shikaan/lifp sh -"

or

sudo sh -c "wget -q https://shikaan.github.io/sup/install -O- | REPO=shikaan/lifp sh -"

Windows and manual instructions

Head to the releases page and download the executable for your system and architecture.

Usage

Launch the executable to start the REPL

Type help for more details.

Once you are ready, you can run your code (e.g., script.lifp) like this

Checkout the examples folder to see more.

API Docs

API Docs

Syntax Highlighting

.lifp files can be edited with tools supporting lisps. Common Lisp's syntax highlighters seem to work particularly well.

Some examples:

  • in Vim you can just add the following modline at the end of your file

Development

This project is written in C23, therefore you need LLVM 20 or newer.

# Clone the repository
git clone https://github.com/shikaan/lifp.git
cd lifp

# Start the REPL
make repl

# Run tests
make test

# Build the binaries
make

The binary will be created in the bin directory.

License

MIT