|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--nl.bluering.ExpParser
this parser can read Expressions from Strings or files. It uses a prologlike syntax (which is also java-like). An example is:
foo(bar(),1,abc). An Expression parser can also read input using quotes:
foo('ab c'). A more advanced feature is the use of operators:
2*(3+4)**8++. You also see the use of brackets here.
| Constructor Summary | |
ExpParser(CoolFileHandle f)
you must first construct a CoolFileHandle to use an ExpPArser. |
|
| Method Summary | |
void |
close()
close the CoolFileHandle. |
Expression |
get()
read an Expression from this ExpParser. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExpParser(CoolFileHandle f)
| Method Detail |
public void close()
public Expression get()
throws java.lang.Exception
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||