Effectivly, you purchase this text to learn how to
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.)
Writing Compilers and Interpreters 2nd Edition
by
Ronald Mak
(Author)
| Ronald Mak (Author) Find all the books, read about the author, and more. See search results for this author |
ISBN-13: 978-0471113539
ISBN-10: 0471113530
Why is ISBN important? ISBN
Scan an ISBN with your phone
Use the Amazon App to scan ISBNs and compare prices.
This bar-code number lets you verify that you're getting exactly the right version or edition of a book. The 13-digit and 10-digit formats both work.
Use the Amazon App to scan ISBNs and compare prices.
Add to book club
Loading your book clubs
There was a problem loading your book clubs. Please try again.
Not in a club? Learn more
Join or create book clubs
Choose books together
Track your books
Bring your club to Amazon Book Clubs, start a new book club and invite your friends to join, or find a club that’s right for you for free.
Buy used:
$18.17
More Buying Choices
There is a newer edition of this item:
Writing Compilers and Interpreters: A Software Engineering Approach
$55.77
(38)
Only 7 left in stock (more on the way).
$55.77
(38)
Only 7 left in stock (more on the way).
Quickly master all the skills you need to build your own compilers and interpreters in C++
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/
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/
Customers who viewed this item also viewed
Page 1 of 1 Start overPage 1 of 1
Customers who bought this item also bought
Page 1 of 1 Start overPage 1 of 1
Raspberry Pi 4 Model B 2019 Quad Core 64 Bit WiFi Bluetooth (4GB)Amazon's Choicein Single Board Computers
Editorial Reviews
From the Publisher
Grab hold of your C++ because here you'll learn how to use it to write compilers and interpreters--those programs that translate high-level computer code into machine-executable code. The only C++-based book on compilers and interpreters available, this revised and updated edition shows you the ABC's of reading and listing a program, breaking it into tokens, parsing it, and examining its syntax. Then it shows you how to build an actual interpreter, debugger, and finally, a compiler.
From the Back Cover
Quickly master all the skills you need to build your own compilers and interpreters in C++
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/
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
RONALD MAK develops software for BroadVision, Inc., a firm specializing in secure software programs for World Wide Web-based electronic commerce. Prior to moving to BroadVision, Ron was a developer at Apple Computer, where he trained and directed programmers writing Newton Applications.
Tell the Publisher!
I'd like to read this book on Kindle
Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
I'd like to read this book on Kindle
Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Virtual lessons for curious minds
Amazon Explore Browse now
Product details
- Publisher : Wiley; 2nd edition (August 10, 1996)
- Language : English
- Paperback : 864 pages
- ISBN-10 : 0471113530
- ISBN-13 : 978-0471113539
- Item Weight : 2.69 pounds
- Dimensions : 7.4 x 1.82 x 9.2 inches
- Best Sellers Rank: #959,469 in Books (See Top 100 in Books)
- #63 in Compiler Design
- #157 in Software Programming Compilers
- #323 in C++ Programming Language
- Customer Reviews:
About the author
Follow authors to get new release updates, plus improved recommendations.

Discover more of the author’s books, see similar authors, read author blogs and more
Customer reviews
4.1 out of 5 stars
4.1 out of 5
33 global ratings
How customer reviews and ratings work
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.
Reviewed in the United States on January 12, 2002
8 people found this helpful
Report abuse
Reviewed in the United States on June 21, 2019
Im not going to lie, this book is a harder read because compiler design and code is complicated stuff. What I love about this book is that you can find tons of books discussing theory, but this one walks you step by step through real code. Through out the book you follow the author as he writes a pascal compiler in c++. This is a one in a million book, and am so lucky to have found a paper copy.
Reviewed in the United States on April 25, 2012
I'm in the Game Development industry. I was assigned to creating an in-house scripting language for one of our games. I quickly ordered all the compiler / interpreter / scripting books i could find from the classic dragon book to beginning game scripting. After a week of reading book after book i was starting to get really worried, each text was way too abstract or so simple it had no relevance. Long behold, sitting at the bottom of my pile of books i found this gem. It's a god-send, i call it my scripting bible. I was able to read and understand the book in a few days and had the PASCAL compiler and interpreter up and running in about a week. After reading this text i was able to design and implement the scripting language i was asked to make with relative ease. My suggestion, get this book!
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.
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.
2 people found this helpful
Report abuse
Reviewed in the United States on June 7, 2001
I used to think you had to be some kind of super human being to write a compiler.Guess what? I was wrong. If you buy this book and you have good c++ programming skills as well as knowledge of data structures(lists,trees etc) you are well on your way.
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.
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.
10 people found this helpful
Report abuse
Reviewed in the United States on February 24, 2009
Mr. Mak may have been a great coder, thinker and mentor at BroadVision and Apple. He, however, should not write any more books. He is a bad communicator. I'd rather see his talent used elsewhere.
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.
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.
One person found this helpful
Report abuse
Reviewed in the United States on January 22, 2015
Great book!
Reviewed in the United States on September 4, 2012
The book was in great condition, and easy to understand. Even though the book foucses on writing compliers or interpreters for the pascal language, the concepts can be used to write more complicted pragramming lanugages such as C or C++.
Reviewed in the United States on January 17, 2014
very good book in c++ to generate 8086 assembly code. Ronald is proffessional expert. he had writen 3 books by now!
Top reviews from other countries
Mr. J. Youngman
1.0 out of 5 stars
Bought it. Sent it back.
Reviewed in the United Kingdom on September 18, 2008
About 75% of this book is simply a printout of the code. There is not very much expository text, the compiler code is left to speak for itself. However, a number of features of the book annoyed me. Firstly the book uses an incredibly arcane dialect of C++. The author actually does this:
#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.
#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.
4 people found this helpful
Report abuse








