Building Parsers With Java

Author: Steven John Metsker
List Price: $39.95
Our Price: Click to see the latest and low price
ISBN: 0201719622
Publisher: Addison-Wesley Pub Co (26 March, 2001)
Edition: Paperback
Sales Rank: 93,703
Average Customer Rating: 4.17 out of 5

Buy now directly from Amazon.com - Purchase this book, safely and securely from the largest book dealer on the Internet, Amazon.com

Customer Reviews

Rating: 3 out of 5
Beware the Parser Framework!
I agree with the other 3-star reviews of this book. It's full of fascinating ideas about a very advanced topic, but the fact that everything is so dependent on the included framework makes it difficult to learn from. I think the best programming books teach you how to build step-by-step from the ground up. Instead, this book expects you to immerse yourself in the code first, and then figure things out from there.


Rating: 5 out of 5
Really nice book for parsing
I have recently read this book, and found that it is one of the best books of explaining how to build your own parsers. It provides a lot of useful libraries and good examples. If you read first few chapters, then you can build your parser without difficulties. I am currently building my language parser which is related to SQL, my boss and I thought that we have to use JavaCC, but we might change our mind to use the library provided by this book.
One thing you have to be careful is that the author is thinking you are a good java programmer. That means he skipped some explanation on some topics that might make readers confused if they don't have enough background.


Rating: 3 out of 5
Fair -- But somewhat incomplete
This book is well written with few spelling/typographical errors. However, it's title is a bit misleading. I expected the book to explain how to develop a parser from the ground up (tokenizing the input strings, recognizing the syntax, dispatching to appropriate code based on the recognized symbols, etc.)

Instead, the book shows how to build parsers using the authors own parser toolkit. The toolkit seems to be quite good, with lots of useful facilities. However I found myself frustrated because it seemed like the most interesting topics were effectively avoided by making them part of the toolkit.

Want to build an interpreter? Use the author's "Engine" class -- just pass it your language rules. Want to parse a different language? Use the author's parser tools, just pass it information about the syntax.

Still, the book does provide good descriptions of the spaces between the low-level details of tokenizing and interpreting. It's just dissapointing that it doesn't provide more coverage of the "black arts" of parser design.

Similar Products

· The Data Model Resource Book, Vol. 1: A Library of Universal Data Models for All Enterprises
· Writing Compilers and Interpreters
· Programming Language Processors in Java: Compilers and Interpreters
· Modern Compiler Implementation in Java
· Swing, Second Edition

Return To Main Computer Book IndexSearch Our Entire Computer Book Catalog