Skip to content

shikaan/lifp

Repository files navigation

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

lifp repl

Type help for more details.

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

lifp run ./script.lifp

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
; vim: ft=lisp

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

About

☯️ A Lisp dialect and toolchain. All in one binary.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •