Building Parsers with Java

sjm.examples.introduction
Class ShowEmpty

java.lang.Object
  |
  +--sjm.examples.introduction.ShowEmpty

public class ShowEmpty
extends java.lang.Object

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

ShowEmpty

public ShowEmpty()
Method Detail

main

public static void main(java.lang.String[] args)
Show the value of the 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