|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--elan.parser.ExpressionParser
This is a recursive descent parser for parsing expressions using the standard grammar for expressions (follows).
expression ::= term
::= term + expression
::= term - expression
term ::= factor
::= factor * term
::= factor / term
factor ::= number
::= - factor
::= ( expression )
This class has undergone basic though not thorough testing
| Method Summary | |
static ExpressionParser |
getInstance()
|
GrammarElement |
parse(ElanParser ep)
|
protected Expression |
parseExpression()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ExpressionParser getInstance()
public GrammarElement parse(ElanParser ep)
parse in interface Parserprotected Expression parseExpression()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||