
Автор: Jeremy G. Siek
Издательство: The MIT Press
Год: 2023
Страниц: 240
Язык: английский
Формат: epub (true)
Размер: 16.6 MB
A hands-on approach to understanding and building compilers. Compilers are notoriously some of the most difficult programs to teach and understand. Most books about compilers dedicate one chapter to each progressive stage, a structure that hides how language features motivate design choices. By contrast, this innovative textbook provides an incremental approach that allows students to write every single line of code themselves. Essentials of Compilation guides the reader in constructing their own compiler for a small but powerful programming language, adding complex language features as the book progresses. Jeremy Siek explains the essential concepts, algorithms, and data structures that underlie modern compilers and lays the groundwork for future study of advanced topics. Already in wide use by students and professionals alike, this rigorous but accessible book invites readers to learn by doing. We use the Racket language both for the implementation of the compiler and for the input language, so the reader should be proficient with Racket or Scheme.