|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Visitor
xtc.parser.Transformer.Desugarer
public class Transformer.Desugarer
Visitor to desugar repetitions and options. This visitor assumes that a production's top-level element is an ordered choice with a sequence for each alternative.
| Constructor Summary | |
|---|---|
Transformer.Desugarer()
Create a new desugarer. |
|
| Method Summary | |
|---|---|
protected void |
process(Sequence s,
NonTerminal nt)
Process the specified sequence. |
Element |
visit(Option o)
Visit the specified option. |
void |
visit(Production p)
Visit the specified production. |
Element |
visit(Repetition r)
Visit the specified repetition. |
| 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 |
| Constructor Detail |
|---|
public Transformer.Desugarer()
| Method Detail |
|---|
protected void process(Sequence s,
NonTerminal nt)
s - The sequence.nt - The nonterminal or null if no nonterminal
should be added.public void visit(Production p)
public Element visit(Repetition r)
public Element visit(Option o)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||