|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Visitor
xtc.parser.ValueChecker
public class ValueChecker
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.
| 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 |
|---|
protected Runtime runtime
protected Analyzer analyzer
protected java.util.List<Element> elements
| Constructor Detail |
|---|
public ValueChecker(Runtime runtime,
Analyzer analyzer)
runtime - The runtime.analyzer - The analyzer.| Method Detail |
|---|
public void visit(Module m)
public void visit(FullProduction p)
public void visit(OrderedChoice c)
public void visit(Sequence s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||