|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Visitor
xtc.parser.GrammarVisitor
xtc.parser.ProductionVoider.Tester
public static class ProductionVoider.Tester
Visitor to determine which productions are voidable.
| Field Summary | |
|---|---|
protected boolean |
secondPhase
The flag for whether we are currently unmarking productions. |
protected boolean |
voidable
The flag for whether a production may be voided. |
| Fields inherited from class xtc.parser.GrammarVisitor |
|---|
analyzer, isBound, isLastElement, isPredicate, isRepeatedOnce, isTopLevel, isVoided, needsSequence, runtime, transformInPlace |
| Constructor Summary | |
|---|---|
ProductionVoider.Tester(Runtime runtime,
Analyzer analyzer)
Create a new tester. |
|
| Method Summary | |
|---|---|
Element |
visit(Action a)
Visit the specified action. |
Element |
visit(Binding b)
Visit the specified binding. |
java.lang.Object |
visit(Module m)
Visit the specified grammar. |
Element |
visit(NonTerminal nt)
Visit the specified nonterminal. |
Element |
visit(ParserAction pa)
Visit the specified parser action. |
Element |
visit(SemanticPredicate p)
Visit the specified semantic predicate. |
java.util.Set<NonTerminal> |
voidable()
Get the set of nonterminals corresponding to voidable productions. |
| Methods inherited from class xtc.parser.GrammarVisitor |
|---|
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
| Methods inherited from class xtc.tree.Visitor |
|---|
dispatch, equals, hashCode, iterate, map, mapInPlace, unableToVisit, visit |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean secondPhase
protected boolean voidable
| Constructor Detail |
|---|
public ProductionVoider.Tester(Runtime runtime,
Analyzer analyzer)
runtime - The runtime.analyzer - The analyzer utility.| Method Detail |
|---|
public java.util.Set<NonTerminal> voidable()
public java.lang.Object visit(Module m)
visit in class GrammarVisitorpublic Element visit(Binding b)
visit in class GrammarVisitorpublic Element visit(NonTerminal nt)
public Element visit(SemanticPredicate p)
visit in class GrammarVisitorpublic Element visit(Action a)
public Element visit(ParserAction pa)
visit in class GrammarVisitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||