| Package | Description |
|---|---|
| xtc.parser |
| Modifier and Type | Field and Description |
|---|---|
protected Module |
Analyzer.mCurrent
The current grammar module.
|
protected Module |
Analyzer.module
The self-contained grammar module.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,Module> |
Analyzer.moduleMap
The map from module names (as strings) to module objects.
|
java.util.List<Module> |
Grammar.modules
The list of
modules. |
| Modifier and Type | Method and Description |
|---|---|
protected Module |
Resolver.combine(Grammar g,
java.util.List<Attribute> attributes)
Combine the modules in the specified grammar.
|
Module |
Analyzer.copy(Module m)
Make a deep copy of the specified module.
|
Module |
Analyzer.currentModule()
Get the module currently being processed.
|
protected Module |
Resolver.load(java.lang.String name)
Load the module with the specified name.
|
Module |
Analyzer.lookup(ModuleName module)
Look up the specified module.
|
Module |
Analyzer.lookup(java.lang.String module)
Look up the specified module.
|
Module |
Analyzer.module()
Get the initializing module.
|
Module |
Analyzer.topLevel()
Get the top-level module.
|
Module |
Copier.visit(Module m)
Copy the specified module.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Analyzer.add(Module m)
Add the specified module to the current grammar.
|
Module |
Analyzer.copy(Module m)
Make a deep copy of the specified module.
|
boolean |
Analyzer.hasAttribute(Module m,
java.lang.String name,
java.util.Set<ModuleName> visited)
Determine whether the specified module or any of its import or
modification dependencies has an attribute with the specified
name.
|
void |
Analyzer.init(Module m)
Initialize this analyzer for the specified module.
|
boolean |
Analyzer.isDefined(Production p,
Module m)
Determine whether the specified production is defined by the
specified module.
|
boolean |
Analyzer.isImported(Production p,
Module m)
Determine whether the specified production is defined by a module
imported by the specified module.
|
boolean |
Analyzer.isImported(java.lang.String name,
Module m)
Determine whether the module with the specified name is imported
by the specified module.
|
boolean |
Analyzer.isTopLevel(Module m)
Determine whether the specified module is the top-level module.
|
protected Grammar |
Resolver.load(Module m)
Load all dependent modules.
|
FullProduction |
Analyzer.lookup(NonTerminal nt,
Module m)
Look up the production for the specified nonterminal, which is
also defined by the specified module.
|
protected void |
HtmlPrinter.print(Module m)
Actually print the specified module.
|
protected void |
PrettyPrinter.printActions(Module m)
Print the specified module's header, body, and footer actions.
|
protected void |
HtmlPrinter.printDocumentation(Module m) |
protected void |
PrettyPrinter.printDocumentation(Module m)
Print the specified module documentation comment.
|
protected void |
PrettyPrinter.printModule(Module m)
Print the specified module's declaration.
|
protected void |
HtmlPrinter.printOption(Module m) |
protected void |
PrettyPrinter.printOption(Module m)
Print the specified module's options.
|
void |
Analyzer.process(Module m)
Process the specified module.
|
protected void |
VariantSorter.pushPull(Module m)
Push and pull any variant types.
|
void |
Analyzer.remove(Module m)
Remove the specified module from the current grammar.
|
void |
Grammar.remove(Module module)
Remove the specified module from this grammar.
|
protected void |
Resolver.rename(Module module,
ModuleMap renaming)
Rename the specified module.
|
void |
Grammar.replace(Module oldModule,
Module newModule)
Replace the specified module.
|
protected void |
Resolver.signature(Module m)
Print the specified module's signature.
|
void |
Analyzer.trace(Module m,
java.util.Set<ModuleName> imports,
java.util.Map<ModuleName,java.lang.Boolean> modified)
Trace the specified module's dependencies.
|
java.lang.Object |
Inliner.visit(Module m)
Process the specified grammar.
|
void |
MetaDataSetter.visit(Module m)
Analyze the specified grammar.
|
void |
Generifier.visit(Module m)
Visit the specified grammar.
|
void |
Annotator.visit(Module m)
Visit the specified grammar.
|
void |
Annotator.Detector.visit(Module m)
Visit the specified module.
|
void |
Annotator.Rewriter.visit(Module m)
Visit the specified module.
|
void |
TextTester.visit(Module m)
Visit the specified grammar.
|
void |
ValueChecker.visit(Module m)
Visit the specified module.
|
java.lang.Object |
GenericVoider.visit(Module m)
Visit the specified grammar.
|
java.lang.Object |
Tokenizer.visit(Module m)
Visit the specified grammar.
|
void |
Tokenizer.Tester.visit(Module m)
Visit the specified grammar.
|
java.lang.Object |
GrammarVisitor.visit(Module m)
Visit the specified self-contained module.
|
void |
TreeExtractor.visit(Module m)
Visit the specified module.
|
java.lang.Object |
DeadProductionEliminator.visit(Module m)
Visit the specified grammar.
|
void |
Transformer.visit(Module m)
Visit the specified grammar.
|
void |
ElementVoider.visit(Module m)
Visit the specified self-contained module.
|
java.lang.Object |
RootFinder.visit(Module m)
Visit the specified grammar.
|
java.lang.Object |
ReferenceCounter.visit(Module m)
Visit the specified grammar.
|
Module |
Copier.visit(Module m)
Copy the specified module.
|
void |
ListMaker.visit(Module m)
Visit the specified module.
|
java.lang.Object |
Resolver.visit(Module m)
Visit the specified module.
|
void |
CodeGenerator.visit(Module m)
Generate code for the specified grammar.
|
java.lang.Object |
ProductionVoider.visit(Module m)
Visit the specified grammar.
|
java.lang.Object |
ProductionVoider.Tester.visit(Module m)
Visit the specified grammar.
|
java.lang.Object |
ChoiceExpander.visit(Module m)
Visit the specified grammar.
|
void |
HtmlPrinter.visit(Module m) |
void |
PrettyPrinter.visit(Module m)
Print the specified module.
|
void |
DirectLeftRecurser.visit(Module m)
Process the specified grammar.
|
void |
ReachabilityChecker.visit(Module m)
Visit the specified module.
|
void |
CostEstimator.visit(Module m)
Visit the specified grammar.
|
java.lang.Object |
DuplicateProductionFolder.visit(Module m)
Visit the specified grammar.
|
void |
MetaDataCreator.visit(Module m)
Visit the specified grammar.
|
java.lang.Object |
TransientMarker.visit(Module m)
Visit the specified grammar.
|
void |
VariantSorter.visit(Module m)
Visit the specified grammar.
|
void |
VariantSorter.Registrar.visit(Module m)
Visit the specified grammar.
|
void |
TreeTyper.visit(Module m)
Visit the specified module.
|
void |
LeftRecurser.visit(Module m)
Visit the specified self-contained module.
|
| Constructor and Description |
|---|
Grammar(java.util.List<Module> modules)
Create a new grammar.
|
Copyright © 2014. All Rights Reserved.