public interface GrammarEntityVisitor
GrammarEntity
class. One in that is
supposed to be called when first seeing the node, one apply that can traverse contained GrammarEntity
nodes.
After this the out method should be called.
The visitor can be though of as visiting all grammar entities in the grammar graph by traversing a spanning
tree of this graph. Hence only weak invariants about the order of traversal of the graph can be asserted.Modifier and Type | Method and Description |
---|---|
void |
apply(Grammar g) |
void |
apply(NonTerminal nonTerminal) |
void |
apply(Production production) |
void |
apply(Terminal terminal) |
void |
in(NonTerminal nonTerminal) |
void |
in(Production production) |
void |
in(Terminal terminal) |
void |
out(NonTerminal nonTerminal) |
void |
out(Production production) |
void |
out(Terminal terminal) |
void |
print(Grammar g) |
boolean |
shouldPrettyPrint() |
void apply(Grammar g)
void apply(NonTerminal nonTerminal)
void apply(Production production)
void apply(Terminal terminal)
void in(NonTerminal nonTerminal)
void in(Production production)
void in(Terminal terminal)
void out(NonTerminal nonTerminal)
void out(Production production)
void out(Terminal terminal)
void print(Grammar g)
boolean shouldPrettyPrint()
Copyright © 2008-2013 Mathias Schwarz.