Revisiting "Let's Build a Compiler"

last updated: Dec 10, 2025

https://eli.thegreenplace.net/2025/revisiting-lets-build-a-compiler/

There's an old compiler-building tutorial that has become part of the field's lore: the Let's Build a Compiler series by Jack Crenshaw (published between 1988 and 1995)...

The tutorial is easily available and readable online, but just re-reading it seemed insufficient. So I've decided on meticulously translating the compilers built in it to Python and emit a more modern target - WebAssembly. It was an enjoyable process and I want to share the outcome and some insights gained along the way.

I'd not heard of this compiler tutorial before, but it seems neat

↑ up