endrov.util.mathExpr
Class MathExprParser

java.lang.Object
  extended by endrov.util.mathExpr.MathExprParser

public class MathExprParser
extends java.lang.Object

Parser for mathematical expressions


Nested Class Summary
static class MathExprParser.ParseException
          Exception raised on parse error
 
Constructor Summary
MathExprParser()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static MathExpr parse(java.lang.String s)
          Parse an expression from the string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathExprParser

public MathExprParser()
Method Detail

parse

public static MathExpr parse(java.lang.String s)
                      throws MathExprParser.ParseException
Parse an expression from the string. Returns null if the string is only whitespace. Throws exception on parse error

Throws:
MathExprParser.ParseException

main

public static void main(java.lang.String[] args)