This is a collections of implementations of the lox langauge as built in Crafting Interpreters by Robert Nystrom. All credit to him for the great book. I highly encourage you to look into it if you're interested in looking into how languages are built.
glox, a tree walking interpreter in go.
cdvlox, a bytecode C implementation, in the style of
relox, a rust bytecode interpreter for lox. With most exercises completed.
Every directory is self contained. Here is what is necessary to build each project:
cd go && go build
cd c && meson build [...options] && ninja -C build
cd rs && cargo build [...options]
The test suite has been adapted from the main Crafting Interpreters test suite, under the terms of the MIT License. The original source and copyright notice are present at the main github repository: https://github.com/munificent/craftinginterpreters.git