trassare.com

Package com.trassare.calculator.engine

This package contains an evaluation engine for infix expressions.

See:
          Description

Class Summary
ExpressionScanner A scanner class used for arithmetic expressions.
CS 152, Fall, 2005
Programming Assignment #1
InfixCalculator InfixCalculator parses, calculates, and prints the results of a series of floating-point arithmetic expressions, one to a line, as given by the following grammar:
Operation This class contains the mathematical operations that are not native to the BigDecimal class.
PushbackReaderFactory Used to swap out the PushbackReader in the ExpressionScanner.
Token A Token class for use in a scanner for simple arithmetic expressions.
CS 152, Fall, 2005
Programming Assignment #1
Token.ERROR Token matching an erroneous character in input.
CS 152, Fall, 2005
Programming Assignment #1
Token.IDENTIFIER Token matching regular expression [A-Z]+ in input.
This token is used for variable names in the input expression.
Token.NUMBER Token matching regular expression [0-9]+(\.[0-9]*)? in input.
CS 152, Fall, 2005
Programming Assignment #1
 

Exception Summary
ExpressionScanner.ScanException An exception to indicate an IO error in the scanner.
Useful to avoid the checked exception IOException.
CS 152, Fall, 2005
Programming Assignment #1
Operation.OperationException An exception to indicate an invalid number in an operation.
ParseException A custom exception class for the calculator.
 

Package com.trassare.calculator.engine Description

This package contains an evaluation engine for infix expressions. Originally based on a series of assignments given by Dr. Kenneth Louden at San Jose State University, it has been expanded throughout to provide a rich set of calculator features.


trassare.com