|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Visitor
xtc.parser.Tokenizer.Tester
public static class Tokenizer.Tester
Visitor to determine which productions are lexical.
| Field Summary | |
|---|---|
protected Analyzer |
analyzer
The analyzer utility. |
protected boolean |
isLexical
The flag for whether the current production is lexical. |
protected Runtime |
runtime
The runtime. |
| Constructor Summary | |
|---|---|
Tokenizer.Tester(Runtime runtime,
Analyzer analyzer)
Create a new lexical tester. |
|
| Method Summary | |
|---|---|
protected void |
mark(Production p)
Mark the specified production as lexical. |
void |
visit(Action a)
Visit the specified action. |
void |
visit(Binding b)
Visit the specified binding. |
void |
visit(CharCase c)
Visit the specified character case. |
void |
visit(CharSwitch s)
Visit the specified character switch. |
void |
visit(Element e)
Visit the specified element. |
void |
visit(Module m)
Visit the specified grammar. |
void |
visit(NodeMarker m)
Visit the specified node marker. |
void |
visit(NonTerminal nt)
Visit the specified nonterminal. |
void |
visit(NullLiteral l)
Visit the specified null literal. |
void |
visit(OrderedChoice c)
Visit the specified ordered choice. |
void |
visit(ParserAction pa)
Visit the specified parser action. |
void |
visit(Production p)
Visit the specified production. |
void |
visit(SemanticPredicate p)
Visit the specified semantic predicate. |
void |
visit(Sequence s)
Visit the specified sequence. |
void |
visit(Terminal t)
Visit the specified terminal. |
void |
visit(UnaryOperator op)
Visit the specified unary operator. |
| 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 final Runtime runtime
protected final Analyzer analyzer
protected boolean isLexical
| Constructor Detail |
|---|
public Tokenizer.Tester(Runtime runtime,
Analyzer analyzer)
runtime - The runtime.analyzer - The analyzer utility.| Method Detail |
|---|
protected void mark(Production p)
p - The production.public void visit(Module m)
public void visit(Production p)
public void visit(OrderedChoice c)
public void visit(Sequence s)
public void visit(SemanticPredicate p)
public void visit(Binding b)
public void visit(NonTerminal nt)
public void visit(CharCase c)
public void visit(CharSwitch s)
public void visit(Terminal t)
public void visit(UnaryOperator op)
public void visit(NullLiteral l)
public void visit(NodeMarker m)
public void visit(Action a)
public void visit(ParserAction pa)
public void visit(Element e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||