public static class ProductionVoider.Tester extends GrammarVisitor
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
secondPhase
The flag for whether we are currently unmarking productions.
|
protected boolean |
voidable
The flag for whether a production may be voided.
|
analyzer, isBound, isLastElement, isPredicate, isRepeatedOnce, isTopLevel, isVoided, needsSequence, runtime, transformInPlace| Constructor and Description |
|---|
ProductionVoider.Tester(Runtime runtime,
Analyzer analyzer)
Create a new tester.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitdispatch, equals, hashCode, iterate, map, mapInPlace, unableToVisit, visitprotected boolean secondPhase
protected boolean voidable
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(ParserAction pa)
visit in class GrammarVisitorCopyright © 2014. All Rights Reserved.