• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Boolean expression parser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Boolean expression parser


  • Subject: Re: Boolean expression parser
  • From: Mike Schrag <email@hidden>
  • Date: Tue, 5 Oct 2010 00:09:08 -0400

EOQualifier?

On Oct 5, 2010, at 12:03 AM, 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@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Boolean expression parser [SOLVED]
      • From: Kieran Kelleher <email@hidden>
References: 
 >Boolean expression parser (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Boolean expression parser
  • Next by Date: FetchSpec binding order
  • Previous by thread: Boolean expression parser
  • Next by thread: Re: Boolean expression parser [SOLVED]
  • Index(es):
    • Date
    • Thread