|
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.introduction.ShowEmpty
Show how to put the Empty class to good use.
| Constructor Summary | |
ShowEmpty()
|
|
| Method Summary | |
static void |
main(java.lang.String[] args)
Show the value of the Empty parser, using a
list parser. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ShowEmpty()
| Method Detail |
public static void main(java.lang.String[] args)
Empty parser, using a
list parser.
A list, in this example, is a pair of brackets around some
contents. The contents may be empty, or may be an actual
list. An actual list is one or more words, separated by
commas. That is, an actual list is a word followed by
zero or more sequences of (comma, word).
|
by Steve Metsker | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||