|
Language Processing v2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectParser.Symbol
public class Parser.Symbol
represents a literal terminal.
All instances can be found in Parser.symbols.
| Field Summary | |
|---|---|
int |
token
unique symbol number, index into Parser.yyNames. |
String |
value
internalized representation. |
| Constructor Summary | |
|---|---|
protected |
Parser.Symbol(String value)
assumed unique, within range, single character not '\0' or > 256, adds itself to Parser.symbols and Parser.yyNames. |
| Method Summary | |
|---|---|
String |
toString()
|
void |
visit(Visitor visitor)
implements divide and conquer for Visitor. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final String value
public final int token
Parser.yyNames.
| Constructor Detail |
|---|
protected Parser.Symbol(String value)
Parser.symbols and Parser.yyNames.
value - must be internalized.| Method Detail |
|---|
public void visit(Visitor visitor)
Visitor.
public String toString()
toString in class Object
|
(c) 2008 Axel T. Schreiner |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||