Book description
Parser building is a powerful programming technique that opens a world of opportunity for designing how users interact with applications. By creating mini-languages, you can precisely address the requirements of your application development domain. Writing your own parsers empowers you to access a database more effectively than SQL to efficiently control the movement of an order through its workflow, to command the actions of a robot, and to control access privileges to transactions in a system. The repertoire of today's professional programmer should include the know-how to create custom languages.
Building Parsers with Java™ shows how to create parsers that recognize custom programming languages. This book and its accompanying CD provide an in-depth explanation and clearly written tutorial on writing parsers, following the Interpreter Design Pattern. An easy-to-follow demonstration on how to apply parsers to vital development tasks is included, using more than a hundred short examples, numerous UML diagrams, and a pure Java parser toolkit to illustrate key points.
You will learn
How to design, code, and test a working parser
How to create a parser to read a data language, and how to create new computer languages with XML
How to translate the design of a language into code
How to accept an arithmetic formula and compute its result
How to accept and apply matching expressions like th* one
How to use tokenizers to define a parser in terms of logical nuggets instead of individual characters
How to build parsers for a custom logic language like Prolog
How to build parsers for a custom query language that goes beyond SQL
How to construct an imperative language that translates text into commands that direct a sequence of actions
0201719622B04062001
Table of contents
- Copyright
- Foreword
- Preface
- Introduction
- The Elements of a Parser
- Building a Parser
- Testing a Parser
- Parsing Data Languages
- Transforming a Grammar
- Parsing Arithmetic
- Parsing Regular Expressions
- Advanced Tokenizing
- Matching Mechanics
- Extending the Parser Toolkit
- Engines
- Logic Programming
- Parsing a Logic Language
- Parsing a Query Language
- Parsing an Imperative Language
- Directions
- UML Twice Distilled
- References
Product information
- Title: Building Parsers with Java™
- Author(s):
- Release date: March 2001
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780201719628
You might also like
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …
book
Realm of Racket
In Realm of Racket you'll learn to wield Racket's mighty yet mind-bending power by reading comics …
book
Ember.js Cookbook
Arm yourself with over 65 hands-on recipes to master the skills of building scalable web applications …
article
Use Github Copilot for Prompt Engineering
Using GitHub Copilot can feel like magic. The tool automatically fills out entire blocks of code--but …