Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Writing Compilers and Interpreters 2nd Edition
There is a newer edition of this item:
$67.99
(48)
Only 4 left in stock (more on the way).
Whether you are a professional programmer who needs to write a compiler at work or a personal programmer who wants to write an interpreter for a language of your own invention, this book quickly gets you up and running with all the knowledge and skills you need to do it right. It cuts right to the chase with a series of skill-building exercises ranging in complexity from the basics of reading a program to advanced object-oriented techniques for building a compiler in C++.
Here's how it works:
Every chapter contains anywhere from one to three working utility programs that provide a firsthand demonstration of concepts discussed, and each chapter builds upon the preceding ones. You begin by learning how to read a program and produce a listing, deconstruct a program into tokens (scanning), and how to analyze it based on its syntax (parsing). From there, Ron Mak shows you step by step how to build an actual working interpreter and an interactive debugger. Once you've mastered those skills, you're ready to apply them to building a compiler that runs on virtually any desktop computer.
Visit the Wiley Computer Books Web page at: http://www.wiley.com/compbooks/
- ISBN-100471113530
- ISBN-13978-0471113539
- Edition2nd
- PublisherWiley
- Publication dateAugust 10, 1996
- LanguageEnglish
- Dimensions7.4 x 1.82 x 9.2 inches
- Print length864 pages
Customers who bought this item also bought
The Design of the UNIX Operating SystemPaperback$15.15 shippingGet it as soon as Friday, Oct 11Only 1 left in stock - order soon.

Retargetable C Compiler, A: Design and ImplementationDavid HansonPaperback$15.98 shippingOnly 7 left in stock (more on the way).
Editorial Reviews
From the Publisher
From the Back Cover
Whether you are a professional programmer who needs to write a compiler at work or a personal programmer who wants to write an interpreter for a language of your own invention, this book quickly gets you up and running with all the knowledge and skills you need to do it right. It cuts right to the chase with a series of skill-building exercises ranging in complexity from the basics of reading a program to advanced object-oriented techniques for building a compiler in C++.
Here's how it works:
Every chapter contains anywhere from one to three working utility programs that provide a firsthand demonstration of concepts discussed, and each chapter builds upon the preceding ones. You begin by learning how to read a program and produce a listing, deconstruct a program into tokens (scanning), and how to analyze it based on its syntax (parsing). From there, Ron Mak shows you step by step how to build an actual working interpreter and an interactive debugger. Once you've mastered those skills, you're ready to apply them to building a compiler that runs on virtually any desktop computer.
Visit the Wiley Computer Books Web page at: http://www.wiley.com/compbooks/
About the Author
Product details
- Publisher : Wiley; 2nd edition (August 10, 1996)
- Language : English
- Paperback : 864 pages
- ISBN-10 : 0471113530
- ISBN-13 : 978-0471113539
- Item Weight : 3.25 pounds
- Dimensions : 7.4 x 1.82 x 9.2 inches
- Best Sellers Rank: #1,777,958 in Books (See Top 100 in Books)
- #192 in Software Programming Compilers
- #206 in Compiler Design
- #6,195 in Computer Software (Books)
- Customer Reviews:
About the author

Discover more of the author’s books, see similar authors, read book recommendations and more.
Products related to this item
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
As an after-note i also purchased the first and third editions of the book after realizing how good it is. While they are both pretty interesting i find the second edition to be the best.
Ronald is the man!He breaks the code down into small objects and shows all the code with great insight into what the code is doing. Man, this is how to write a book on such a complex topic. Ronald really shows the benefits of OOP.
Now I feel very confident to take on any programming project. I have over come my fears. I can now get more advanced books on the subject.
The majority of this yellowpage thick book is the source listing. The book comments prior to listing the source snippet, rather than conveying the idea behind the construction.
If it intended to be tutorial, it is a bad, cryptic one. It it's meant to be something else, it's neither an overview nor a comprehensive reference. The content is unfocused.
I have an analogy: This book is like an unusable GUI written by a geek as opposed to the good one crafted by a cognitive scientist or HCI expert.
write compilers and interpreters. This book does this well.
The shadow of this, is the fact that 50-60% of this book
is repetitious code.
Hastily, you're thrown into concepts that help to define
how a compiler works. Details covered range from functions of
a compiler, down to function blocks of descrete code.
Exceptionally thurough, this book is written in a very linear fashion. Almost as if 'A to Z', you're taken from basic line indexing, through assembly output for x86. Providing you have the patience to properly work through this book, once you finish, you will definately have the tools to write your own compiler.
Overall, this is a pretty good book. I would not say great because it does not keep a steady 'beat' with its steps. Fast and slow, it can be disorientating for some people. Rather than
expending pages upon pages of code, I would like to see a CD included with the book. Code would be replaced by simplified function blocks to help speed the process. (To *really* grasp what the author is doing, you have to deciper the exact details
of their code.)
Top reviews from other countries
#define false 0
#define true 1
#define bool int
(bool could be a typedef, I forget).
I concluded pretty rapidly that the book was not going to be useful for me.
