|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--spo.src.SPDB.Query.Parser
A class which constructs a Recursive-Decent Parse tree Rules follow E -> V E -> OE|OEE O -> S|P|C|X|J V -> $ OR E -> V E -> O_1E E -> O_2EE O_1 -> S|P|C O_2 -> X|J V -> $
| Constructor Summary | |
Parser(java.lang.String inputString)
Initialize an instance for the class |
|
| Method Summary | |
parseTree |
buildTree()
Build the parse tree |
void |
evaluateTree(parseTree tree)
Evaluate the query |
static void |
main(java.lang.String[] args)
|
java.util.Vector |
parseSQuery()
Parse the actual structured query into a Vector format |
void |
showTree(parseTree tree)
Show the parse tree in postorder |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Parser(java.lang.String inputString)
inputString - the string to be parsed| Method Detail |
public static void main(java.lang.String[] args)
public parseTree buildTree()
public void showTree(parseTree tree)
tree - the input parse treepublic void evaluateTree(parseTree tree)
tree - the input parse treepublic java.util.Vector parseSQuery()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||