|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.expr.ExpressionParser<T>
public class ExpressionParser<T>
Parses simple expressions using an implementation of the shunting-yard algorithm.
| Constructor Summary | |
|---|---|
ExpressionParser(Reader reader)
Creates a new parser to read from the specified reader. |
|
| Method Summary | |
|---|---|
static void |
main(String... args)
Main method for testing. |
T |
parse()
Parses the expression and returns the object at the top of the stack (or null
if the stack is empty). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionParser(Reader reader)
| Method Detail |
|---|
public static void main(String... args)
throws Exception
Exception
public T parse()
throws Exception
null
if the stack is empty).
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||