Volyx
Source to stack.
What it is
Volyx is a complete miniature compiler that takes source code all the way to a running stack machine. The signature pipeline is a tokenizer feeding a recursive-descent parser, then a single-pass bytecode compiler doing slot resolution, constant interning, and back-patched jumps, ending in a 22-opcode stack VM - with tests confirming it agrees with an independent tree-walking interpreter. It is a from-scratch, dependency-light build you can download and run locally.
A full pipeline - tokenizer → recursive-descent parser → single-pass bytecode compiler (slot resolution, constant interning, back-patched jumps) → 22-opcode stack VM. 18 tests, including agreement with an independent tree-walking interpreter.
What's inside
The full source, the tests, and CI. Open it, read it, change it. A zero-dependency core, free, in the MIT spirit.
Run it after unzip
pnpm install && pnpm dev