Install dependencies:
sudo apt install libreadline-dev
Compile with make:
make
Both clang
(default) and gcc
are supported. Use make CC=gcc
to override C compiler.
You can start a REPL session:
./aspic
Or execute a program:
./aspic <path>
Run tests with ./spec.sh
- Inspired by Crafting Interpreters, from Bob Nystrom