calc
Class ExprParser

java.lang.Object
  |
  +--calc.ExprParser

public class ExprParser
extends java.lang.Object

Parses the user input and constructs Operational Tree


Constructor Summary
ExprParser(java.lang.String input)
           
 
Method Summary
 BaseCalc getOperationTree()
          returns the constructed Operational Tree by its root node
 java.util.Vector getVariableCalcs()
          returns a Vector with all nodes of type VariableCalc used for the insertion of values
static void main(java.lang.String[] args)
          For testing purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExprParser

public ExprParser(java.lang.String input)
           throws calc.SyntaxErrorException
Parameters:
input - the String to be parsed
Method Detail

getOperationTree

public BaseCalc getOperationTree()
returns the constructed Operational Tree by its root node

getVariableCalcs

public java.util.Vector getVariableCalcs()
returns a Vector with all nodes of type VariableCalc used for the insertion of values

main

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