Merge into a single file
Merged the rest
Merged files
A PureLisp compiler and emulator for the SECD stack-machine, written in ANSI C.
To build the emulator, you can simply run make
.
make
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
(12 . 34)
(+ 1 2 3 4)
(* 2 3)