public class UnitProductionRemovalVisitor extends AbstractGrammarEntityVisitor
EpsilonRemovalVisitor
has
already been run on the Grammar so that no ε productions exist.
Uses the algorithm described in [Martin]marked
Constructor and Description |
---|
UnitProductionRemovalVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
apply(Grammar g) |
void |
out(Production production) |
boolean |
shouldPrettyPrint()
If this method returns true the grammar will be printed to debug after the visitor has run
|
public void apply(Grammar g)
apply
in interface GrammarEntityVisitor
apply
in class AbstractGrammarEntityVisitor
public void out(Production production)
out
in interface GrammarEntityVisitor
out
in class AbstractGrammarEntityVisitor
public boolean shouldPrettyPrint()
AbstractGrammarEntityVisitor
shouldPrettyPrint
in interface GrammarEntityVisitor
shouldPrettyPrint
in class AbstractGrammarEntityVisitor
Copyright © 2008-2013 Mathias Schwarz.