xtc.parser
Class Transformer.Deducer

java.lang.Object
  extended by xtc.tree.Visitor
      extended by xtc.parser.Transformer.Deducer
Enclosing class:
Transformer

public class Transformer.Deducer
extends Visitor

Visitor to add semantic values.

This visitor assumes that each production's top-level element is an ordered choice and that each choice's alternatives are sequences.


Field Summary
protected  java.util.List<Element> elements
          The list of elements.
 
Constructor Summary
Transformer.Deducer()
          Create a new deducer.
 
Method Summary
 void visit(OrderedChoice c)
          Visit the specified choice.
 void visit(Production p)
          Visit the specified production.
 void visit(Sequence s)
          Visit the specified sequence.
 
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

elements

protected java.util.List<Element> elements
The list of elements.

Constructor Detail

Transformer.Deducer

public Transformer.Deducer()
Create a new deducer.

Method Detail

visit

public void visit(Production p)
Visit the specified production.


visit

public void visit(OrderedChoice c)
Visit the specified choice.


visit

public void visit(Sequence s)
Visit the specified sequence.



Copyright © 2012. All Rights Reserved.