.. | ||
examples | ||
src | ||
build.lisp | ||
Makefile | ||
pila.asd | ||
prelude.pila | ||
README.md |
Pila
A simple, terse (and barely any useful) stack language. I wanted to learn Common Lisp so I thought it would be nice to write a RPN calculator, but it began to grow out of control and now is a turing-complete (I think) stack language, with loops, conditionals and subroutines.
Usage
Load the pila.asd
system and evaluate (pila:main)
which is the interpreter's
entry point.
Alternatively you can use the provided makefile and use
make build
to build an executable. Note that the makefile assumes that you're using SBCL.
Pila takes a command line argument specifying which file to load and execute:
pila foo.pila
If no file was specified it will drop to Pila's REPL.
Examples
See the examples
folder.