am 21. April 2013
This book is really nice to have as a reference. It shows an object-oriented approach for writing compilers and interpreters. I had learnt some basics about compilers and interpreters and their internal design before I’ve bought this book. I’ve always started in a procedural programming style and later tried to pour the code into classes and/or modules depending on the language I was using.
This was the first time that I’ve really considered a more modern approach and this book has showed me in great detail how that could look like. I had no problem to follow the book with the help of its UML and Syntax Diagrams.
It is also a good (but time consuming) idea to implement the compiler/interpreter while reading the book. In that way you learn a lot about pitfalls, possible spots for bugs, and why which design decision has been made.
I think this book expects some basic knowledge if you want to start right away. There is also an awful lot of code in there. You will hardly find a page without code and listings but that’s the kind of details that let you peek behind the scene.