Why not use lex and yacc?  or flex and bison?

It would be pretty easy to build a grammar that would work for this.

Ken

On Oct 5, 2010, at 4:21 PM, [email protected] wrote:

> 
> I used JEP in another project years ago.  Didn't have any issues with it and 
> I recall it was simple to use.
> 
> I see that it's rather pricey now - looking at the project, we were using 
> vers. 2.2.  Not sure what their pricing model was back then...
> 
> Steve
> 
> On Tue, 5 Oct 2010, Kieran Kelleher wrote:
> 
>> Rather than reinvent the wheel, I am trying to find a real simple library or 
>> java class that will just do boolean expression only parsing and allow me to 
>> evaluate the value of the symbols to true or false (via callback or sth like 
>> that)
>> 
>> For example and expression might look like this:
>> 
>>      "(canViewFood && canEatFood) || (canBuyFood && !canCookFood)"
>> 
>> I want a lib or java class that will walk the expression, calling my method 
>> to evaluate whether each symbol (canViewFood, canEatFood, etc.) is true or 
>> false which logically would turn the expression into something like this:
>> 
>>      "(true && true) || (false && !true)"
>> 
>> 
>> and then evaluate the entire expression to be true or false.
>> 
>> Possible candidates:
>>      https://javacc.dev.java.net/
>>      http://sourceforge.net/projects/jep/
>> 
>> Anyone have experience with this kind of application requirement and would 
>> share opinions and/or experiences?
>> 
>> Regards, Kieran
>> 
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/squirk%40mac.com
>> 
>> This email sent to [email protected]
>> 
>> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to