Building Parsers with Java
Steven John Metsker
Addison-Wesley Professional
This book is for Java developers who want to learn a simple set of techniques for creating and parsing little languages.The book covers the basics of parsing, including tokenization, how to recogize arithmetic, and how to create your own regular expression languages. Later chapters show how to create a SQL-like query language, a Prolog-like logic language, and a curve plotting language called Sling.