|
Building Parsers with Java | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--sjm.examples.reserved.VolumeQuery2
This class shows the use of a customized tokenizer, and the use of a terminal that looks for the new token type.
| Constructor Summary | |
VolumeQuery2()
|
|
| Method Summary | |
static Parser |
query()
Return a parser that recognizes the grammar: query = (Word | volume)* '?'; |
static Tokenizer |
tokenizer()
Return a customized tokenizer that uses WordOrReservedState in place of WordState. |
protected static Parser |
volume()
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public VolumeQuery2()
| Method Detail |
public static Parser query()
public static Tokenizer tokenizer()
protected static Parser volume()
|
by Steve Metsker | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||