Package | Description |
---|---|
infixexpression |
Modifier and Type | Method and Description |
---|---|
Token[] |
InfixTokenizer.getTokens() |
Token[] |
InfixTokenizer.parseLine()
parses the line and creates an array of Tokens.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ShuntingYard.isPrecedenceLessThan(Token o1,
Token o2) |
boolean |
ShuntingYard.isPrecedenceLessThanOrEqualTo(Token o1,
Token o2) |
boolean |
ShuntingYard.leftAssociative(Token o) |
boolean |
ShuntingYard.rightAssociative(Token o) |
void |
ShuntingYard.shuntingYard(Token[] toks,
int size)
Perform the Shunting-yard algorithm and add the postfix
expression to the queue.
|