| Package | Description |
|---|---|
| xtc.parser | |
| xtc.tree | |
| xtc.type |
| Modifier and Type | Class and Description |
|---|---|
class |
Annotator
Visitor to inject source code annotations into a grammar.
|
class |
Annotator.Detector
A visitor to detect whether productions need to be rewritten.
|
class |
Annotator.Rewriter
A visitor to rewrite productions.
|
class |
ChoiceExpander
Visitor to expand choices by inlining productions.
|
class |
CodeGenerator
The code generator.
|
class |
Copier
Visitor to copy grammar nodes.
|
class |
CostEstimator
Visitor to provide a conservative estimate for the cost of parsing
a production.
|
class |
DeadProductionEliminator
Visitor to eliminate dead productions.
|
class |
DirectLeftRecurser
Visitor to transform direct left-recursions into equivalent
right-recursions.
|
class |
DuplicateProductionFolder
Visitor to fold duplicate productions into a single production.
|
class |
ElementVoider
Visitor to void ordered choices, repetitions, and options.
|
class |
EquivalenceTester
Visitor to test productions and elements for equivalence.
|
class |
GenericVoider
Visitor to turn generic productions into void productions.
|
class |
Generifier
Visitor to add generic nodes as semantic values.
|
class |
GrammarVisitor
The parent class of all grammar module visitors.
|
class |
HtmlPrinter
A grammar pretty printer producing HTML.
|
class |
Inliner
Visitor to inline productions.
|
class |
LeftRecurser
Visitor to detect left-recursion in a grammar.
|
class |
ListMaker
Visitor to add lists as semantic values.
|
class |
MetaDataCreator
Visitor to create the production meta-data.
|
class |
MetaDataSetter
Visitor to fill in the production meta-data.
|
class |
PrefixFolder
Visitor to combine common prefixes into a single sequence with an
embedded choice.
|
class |
PrettyPrinter
The grammar pretty printer.
|
class |
ProductionVoider
Visitor to turn the semantic value of a production to void.
|
static class |
ProductionVoider.Tester
Visitor to determine which productions are voidable.
|
class |
ReachabilityChecker
Visitor to ensure that every alternative is reachable.
|
class |
ReferenceCounter
Visitor to fill in meta-data reference counts.
|
class |
Renamer
Visitor to rename nonterminals.
|
class |
Resolver
Visitor to resolve grammar module dependencies.
|
class |
RootFinder
Visitor to identify a grammar's real root.
|
class |
Simplifier
Visitor to simplify a grammar.
|
class |
TerminalOptimizer
Visitor to optimize the recognition of terminals by introducing
character switches.
|
class |
TextTester
Visitor to identify text-only productions.
|
class |
Tokenizer
Visitor to recognize token-level productions.
|
static class |
Tokenizer.Tester
Visitor to determine which productions are lexical.
|
class |
Transformer
Visitor to transform productions.
|
class |
Transformer.Deducer
Visitor to add semantic values.
|
class |
Transformer.Desugarer
Visitor to desugar repetitions and options.
|
class |
Transformer.Lifter
Visitor to lift nested choices, repetitions, and options.
|
class |
Transformer.Typer
Visitor to deduce a production's type.
|
class |
TransientMarker
Visitor to detect productions that can be treated as transient.
|
class |
TreeExtractor
Visitor to pear down a grammar to the structure of its abstract
syntax tree.
|
class |
TreeTyper
Visitor to determine a grammar's tree structure.
|
class |
ValueChecker
Visitor to ensure that every alternative has a semantic value.
|
class |
VariantSorter
Visitor to infer a grammar's variants.
|
class |
VariantSorter.Registrar
Visitor to register all generic node names with the type
operations class.
|
class |
VariantSorter.Typer
Visitor to determine a generic production's variant type.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ParseTreePrinter
Visitor to print parse trees.
|
class |
ParseTreeStripper
Visitor to strip parse trees.
|
class |
Relocator
Visitor to relocate an abstract syntax tree.
|
class |
Transducer
Visitor to convert trees of generic nodes into methods that
programmatically create the trees.
|
| Modifier and Type | Method and Description |
|---|---|
Visitor |
Utility.visitor()
Get the visitor for this utility.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Utility.register(Visitor visitor)
Set the visitor for this utility.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SourcePrinter
A visitor to print types in C-like source form.
|
class |
TypePrinter
A visitor to print types.
|
Copyright © 2014. All Rights Reserved.