scratch/proglangs/pila-clisp
2025-01-04 13:15:05 -03:00
..
examples move pila to this repo 2024-12-26 14:17:41 -03:00
src move pila to this repo 2024-12-26 14:17:41 -03:00
build.lisp move pila to this repo 2024-12-26 14:17:41 -03:00
Makefile move pila to this repo 2024-12-26 14:17:41 -03:00
pila.asd move pila to this repo 2024-12-26 14:17:41 -03:00
prelude.pila move pila to this repo 2024-12-26 14:17:41 -03:00
README.md move pila to this repo 2024-12-26 14:17:41 -03:00

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.