xtc.parser
Class ValueChecker

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

public class ValueChecker
extends Visitor

Visitor to ensure that every alternative has a semantic value. This visitor assumes that the entire grammar is contained in a single module and that any automatically deduced semantic values, including value elements, have been added to the grammar.

Version:
$Revision: 1.12 $
Author:
Robert Grimm

Field Summary
protected  Analyzer analyzer
          The analyzer.
protected  java.util.List<Element> elements
          The list of elements.
protected  Runtime runtime
          The runtime.
 
Constructor Summary
ValueChecker(Runtime runtime, Analyzer analyzer)
          Create a new value checker.
 
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

runtime

protected Runtime runtime
The runtime.


analyzer

protected Analyzer analyzer
The analyzer.


elements

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

Constructor Detail

ValueChecker

public ValueChecker(Runtime runtime,
                    Analyzer analyzer)
Create a new value checker.

Parameters:
runtime - The runtime.
analyzer - The analyzer.
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.