Classes | |
| class | ParseNode |
| Inner class for parse tree. More... | |
Public Member Functions | |
| ExpressionParser (SimpleTokenizer tokenizer) | |
| void | init (String s) |
| Initializes the parse to input s. | |
| void | parse () throws EvaluationException |
| Parses the stream in tok. | |
| ParseNode | getParseRoot () |
| Gets the parse tree. | |
Static Public Member Functions | |
| static void | main (String[] args) |
Package Functions | |
| void | readNextToken () throws EvaluationException |
| void | advance () throws EvaluationException |
| void | checkDone () throws EvaluationException |
| ParseNode | parseA () throws EvaluationException |
| Toplevel parse function. | |
| ParseNode | parseB () throws EvaluationException |
| ParseNode | parseC () throws EvaluationException |
| void | test (String input) |
Package Attributes | |
| ParseNode | root |
| SimpleTokenizer | tokenizer |
| SimpleTokenizer.Token | current |
| SimpleTokenizer.Token | next |
| ParseNode edu.ufl.hcs.ppw.pdm.highlevel.ExpressionParser.parseA | ( | ) | throws EvaluationException [package] |
Toplevel parse function.
LL(1) grammar: A: B A1 A1: null | + B A1 | - B A1
B: C B1 B1: null | * C B1 | / C B1
C: ID | INT | ( A )
Referenced by edu.ufl.hcs.ppw.pdm.highlevel.ExpressionParser.parse().
1.5.8