|
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.pretty.ShowPrettyAlternations
Show how the pretty printer displays a deep match of alternations. The grammar this class shows is:
reptile = crocodilian | squamata;
crocodilian = crocodile | alligator;
squamata = snake | lizard;
crocodile = "nileCroc" | "cubanCroc";
alligator = "chineseGator" | "americanGator";
snake = "cobra" | "python";
lizard = "gecko" | "iguana";
| Constructor Summary | |
ShowPrettyAlternations()
|
|
| Method Summary | |
static Parser |
alligator()
Returns a parser that recognizes some alligators. |
static Parser |
crocodile()
Returns a parser that recognizes some crocs. |
static Parser |
crocodilian()
Returns a parser that recognizes members of the crocodilian order. |
static Parser |
lizard()
Returns a parser that recognizes some lizards. |
static void |
main(java.lang.String[] args)
Show how a series of alternations appear when pretty- printed. |
static Parser |
reptile()
Returns a parser that recognizes some reptiles. |
static Parser |
snake()
Returns a parser that recognizes some snakes. |
static Parser |
squamata()
Returns a parser that recognizes some members of the squamata order. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ShowPrettyAlternations()
| Method Detail |
public static Parser alligator()
public static Parser crocodile()
public static Parser crocodilian()
public static Parser lizard()
public static void main(java.lang.String[] args)
public static Parser reptile()
public static Parser snake()
public static Parser squamata()
|
by Steve Metsker | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||