|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectslogo.jelan.parser.ExpressionParser
public class 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(ElanInterpreter ep)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ExpressionParser getInstance()
public GrammarElement parse(ElanInterpreter ep)
parse
in interface Parser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |