Building Parsers with Java

sjm.examples.minimath
Class MinimathCompute

java.lang.Object
  |
  +--sjm.examples.minimath.MinimathCompute

public class MinimathCompute
extends java.lang.Object

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

MinimathCompute

public MinimathCompute()
Method Detail

main

public static void main(java.lang.String[] args)
Just a little demo.

by Steve Metsker