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 recognize 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.
book's code examples and/or
Buy it at amazon.com (affiliate link).