15.11. The Jaql User Environment

The role of a query language is to take a user query and produce results. You can create a simple graphical user environment where users of your language can develop queries, issue them, and see the results. The heart of such an environment has two text areas: one for user queries and one for results. The environment also needs a button to tell the environment to execute the query and a second button to clear the result area. The sample code for this package includes the class JaqlUe, which provides an interactive user environment for applying Jaql queries to the Chip data model. The code for this user interface is tangential to the subject of writing parsers, but all the code is on the CD included with this book. ...

Get Building Parsers with Java™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.