|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpicasso.parser.ExpressionTreeGenerator
public class ExpressionTreeGenerator
Parses a string into an expression tree based on rules for arithmetic.
| Constructor Summary | |
|---|---|
ExpressionTreeGenerator()
|
|
| Method Summary | |
|---|---|
java.util.Stack<Token> |
infixToPostfix(java.lang.String infix)
This method converts the String infix expression to a Stack of tokens, which are in postfix. |
ExpressionTreeNode |
makeExpression(java.lang.String infix)
Converts the given string into expression tree for easier manipulation. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionTreeGenerator()
| Method Detail |
|---|
public ExpressionTreeNode makeExpression(java.lang.String infix)
infix - - a non-empty expression to parse.
public java.util.Stack<Token> infixToPostfix(java.lang.String infix)
infix -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||