|
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.minimath.MinimathCompute
This class provides a parser that recognizes minimal arithmetic expressions, specifically allowing only the '-' operator. The rules of the Minimath language are:
e = Num m*;
m = '-' Num;
This class shows, in a minimal example, where assemblers
plug into a parser composite.
| Constructor Summary | |
MinimathCompute()
|
|
| Method Summary | |
static void |
main(java.lang.String[] args)
Just a little demo. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public MinimathCompute()
| Method Detail |
public static void main(java.lang.String[] args)
|
by Steve Metsker | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||