~rabbits/lispkit

Lisp Ordinator, written in Lisp/C89
Merge into a single file

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~rabbits/lispkit
read/write
git@git.sr.ht:~rabbits/lispkit

You can also use your local clone with git send-email.

#Lispkit

A PureLisp compiler and emulator for the SECD stack-machine, written in ANSI C.

#Build

To build the emulator, you can simply run make.

make

#Start

The emulator comes with a precompiled version of the self-hosted compiler utils/lispkit.secd, you can make yourself a new one:

bin/lispkit utils/lispkit.secd utils/lispkit.lisp > bin/compiler.secd

When it is done, you can use it to compile new files:

bin/lispkit bin/compiler.secd examples/inc.lisp > bin/inc.secd

You can run this new file, and pass an expression:

echo "1234" | bin/lispkit bin/inc.secd

#TODOs

  • Consing form (12 . 34)
  • Arithmetic sequences (+ 1 2 3 4)
  • Quote form 'hello
  • Auto-quote numbers (* 2 3)
  • Create REPL.