DFIELDSOLUTIONS

Free software

LabVolyx: Source to stack

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.

Free software1 sections · 2 min readBy Dezső Mező.mdFree softwareVolyx

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.

01About the app

Compilers

What to take away

  • 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.
  • Download: Volyx (ZIP)
We build this for clientsFull-stack

Read the full write-up

More from the lab

Browse all entries

Want this looked at on your own system?Start a conversation

5.0
“New shop, more orders in the first week.”Müller Márk · GeekCornerManaging Director · Hungary