This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

HELP!: pointers on unsing expr: A.evaluate() && B.evaluate() || c.evaluate()


Greetings All,

I need to implement an expression compiler that will copile boolean expressions into byte code.

The atoms in the expressions can be the true or flase values:

true && false

Or we could have methids that need to be evaluated on certain objects. For simplicities sake let us say all concerned objects implement the evaluate() method which returns a boolean result thus I would like to compile:

A.evaluate() && B.evaluate().

I can easily define the grammer using JavaCC and have a fair idea how to evaluate the resulting expressions.

I'd be mighty grateful for advise, wizedom and/or sample code.

TIA,

Arman.




He,
Who is capable of attempting the absurd,
Is capable of achieving the impossible.




Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]