Building Parsers with Java

Package sjm.examples.query

Interface Summary
Speller This interface defines the role of a speller, that returns the proper spelling of a class or variable name, given any spelling.
 

Class Summary
ChipSource This class draws on data from the class ChipBase in sjm.examples.chips, to supplies facts about chips, customers, and orders.
ChipSpeller This class maintains dictionaries of the proper spelling of class and variable names in the chip object model.
ClassNameAssembler Pops a class name, and informs a QueryBuilder that this is a class to select from.
ComparisonAssembler This assembler pops a comparison term, an operator, and another comparison term.
ComparisonParser This utility class provides support to the Jaql parser, specifically for expression() and comparison() subparsers.
JaqlMediator This class controls the interaction of the visual components in a JaqlUe.
JaqlParser This class provides a parser that recognizes a select query, without any where clauses.
JaqlTester This class tests that class Jaql can parse random language elements.
JaqlUe This is a simple user environment (UE) for queries written in the Jaql language.
MellowSpeller This class provides a speller that allows any spelling, which facilitates random testing of Jaql language elements.
QueryBuilder This class accepts terms, class names and comparisons, and then builds a query from them.
SelectTermAssembler This assembler pops a term and passes it to a query builder.
ShowChipSource This class shows the chip facts that ChipSource makes available.
VariableAssembler This assembler pops a token from the stack, extracts its string, and pushes a Variable of that name.
 

Exception Summary
UnrecognizedClassException Signals that a given string is not the name of a known class.
UnrecognizedVariableException Signals that a given string is not the name of a known variable.
 


by Steve Metsker