Building Parsers with Java

sjm.examples.pretty
Class ShowPrettyRepetitions

java.lang.Object
  |
  +--sjm.examples.pretty.ShowPrettyRepetitions

public class ShowPrettyRepetitions
extends java.lang.Object

Show that the pretty printer will find all the parses that result from applying the parser Word* Word* against a string with four words.


Constructor Summary
ShowPrettyRepetitions()
           
 
Method Summary
static void main(java.lang.String[] args)
          Show that the pretty printer will find all the parses that result from applying the parser Word* Word* against a string with four words.
static Sequence seq()
          The parser to try:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShowPrettyRepetitions

public ShowPrettyRepetitions()
Method Detail

main

public static void main(java.lang.String[] args)
Show that the pretty printer will find all the parses that result from applying the parser Word* Word* against a string with four words.

seq

public static Sequence seq()
The parser to try:
 
     seq  = rep1 rep2;
     rep1 = Word*;
     rep2 = Word*;
 

by Steve Metsker