Experimental interpreter written from scratch in c
- based on Thorsten Ball's "Writing An Interpreter In Go - Monkey Lang"
lilac_lexer-2024-10-12_21.14.41.mp4
lilac_parser-2024-10-12_21.21.23.mp4
- clang > 18.1.8
- curl
make deps
to setup include file depsmake
ormake all
to build the app inout/
- uses bear to build compilation_database for lsp
make compile-db
make test
builds the test_runner inout/
, then just run it with./out/test_runner
- Lilac uses greatest for the test suites
- so separate test suites can be ran via
-s
flag with many other options
- so separate test suites can be ran via
Build the binary output with make
command.
For lexer output:
./out/lilac --lexer
For parser output:
./out/lilac --parser