Call: +44 (0)7759 277220 Call
PeteFinnigan.com Limited Products, Services, Training and Information
book

Writing a compiler in go

Writing a Compiler in Go is a hands-on guide to building a compiler and virtual machine for a toy language called Monkey. As a sequel to his interpreter book, it extends earlier components—like the lexer, parser, and AST—to generate bytecode and execute it on a stack-based VM. The book emphasizes step-by-step development, test-driven design, and clarity, helping readers understand core compiler concepts such as symbol tables, instruction encoding, and closures. By the end, readers create a faster, fully working language implementation while gaining practical insight into how modern programming languages function internally.

Writing a compiler in go