tk.pratanumandal.expr4j.shuntingyard
package contains Shunting Yard implementations for expression evaluation.See: Description
Class | Description |
---|---|
ShuntingYard |
The
ShuntingYard abstract class provides a blueprint for ShuntingYard implementations.It provides only one method evaluate() which must be overridden by any implementing class. This evaluate() method should act as the single point of access for the implementation. |
ShuntingYardDualStack |
The
ShuntingYardDualStack class provides an implementation of the Shunting Yard algorithm using Dual Stacks.Two stacks are used to immediately evaluate the expression without generating the postfix (or RPN) expression. This is the recommended implementation since theoretically it should use less memory and require less time due to lesser complexity. |
ShuntingYardExpressionTree |
The
ShuntingYardExpressionTree class provides an implementation of the Shunting Yard algorithm using Expression Tree.An expression tree is created from the postfix (or RPN) expression. The expression tree is then parsed to evaluate the expression. |
tk.pratanumandal.expr4j.shuntingyard
package contains Shunting Yard implementations for expression evaluation.Copyright © 2019 Pratanu Mandal. All rights reserved.