xtc.parser
Class ListMaker

java.lang.Object
  extended by xtc.tree.Visitor
      extended by xtc.parser.ListMaker

public class ListMaker
extends Visitor

Visitor to add lists as semantic values.

Version:
$Revision: 1.9 $
Author:
Robert Grimm

Field Summary
protected  Analyzer analyzer
          The analyzer.
protected  AST ast
          The type operations.
protected  Type element
          The current production's element type.
protected  java.util.List<Element> elements
          The list of elements.
static java.lang.String MARKER
          The marker for synthetic variables.
protected  Runtime runtime
          The runtime.
 
Constructor Summary
ListMaker(Runtime runtime, Analyzer analyzer, AST ast)
          Create a new list maker.
 
Method Summary
 void visit(FullProduction p)
          Visit the specified full production.
 void visit(Module m)
          Visit the specified module.
 void visit(OrderedChoice c)
          Visit the specified choice.
 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

MARKER

public static final java.lang.String MARKER
The marker for synthetic variables.

See Also:
Constant Field Values

runtime

protected final Runtime runtime
The runtime.


analyzer

protected final Analyzer analyzer
The analyzer.


ast

protected final AST ast
The type operations.


element

protected Type element
The current production's element type.


elements

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

Constructor Detail

ListMaker

public ListMaker(Runtime runtime,
                 Analyzer analyzer,
                 AST ast)
Create a new list maker.

Parameters:
runtime - The runtime.
analyzer - The analyzer.
ast - The type operations.
Method Detail

visit

public void visit(Module m)
Visit the specified module.


visit

public void visit(FullProduction p)
Visit the specified full 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.