Re: Simple boolean expression evaluator



Thank Marek,

I will test it and will let you know what I find. If I have the opportunity
to improve it, I will let you know.

Richard

"marek jedlinski" <marek@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:m9p3c1lgbhjatml7so7la68kkgmtmtvrhq@xxxxxxxxxx
> On Tue, 21 Jun 2005 11:26:11 -0400, "Richard Marchand"
> <richardm@xxxxxxxxxxx> wrote:
>
>
>>I am searching for a simple function that will take a string of boolean
>>expressions like:
>>
>> "((True of false) and (false or false)) or (true and false)"
>>
>>And return a boolean result.
>>
>
> I have a class that implements this kind of search, will post it to
> .attachments in a minute. It's based on example code by Julian Bucknall
> (published in Delphi Magazine once), which I modified to break into
> specialized classes and to make the evaluator event-driven. I'm using it
> in
> an application without a problem, but it's not very fast and the way it
> works doesn't allow for shortcut evaluation. Feel free to use it for any
> purpose if it does what you need.
>
>
> .marek
>
> --
> No ads, no nags freeware: http://www.tranglos.com
> (KeyNote, PhoneDeck, KookieJar, Oubliette, URLInject)
>
> "No man's life, liberty, or property is safe while the
> legislature is in session." (Judge Gideon J. Tucker, 1866.)
>


.



Relevant Pages

  • Re: Richard Heathfields lie
    ... searching it: but, the simplest possible search provides 37 hits. ... to you, probably, that Richard Heathfield gets away with lying, so ... lawyers and out of court. ... My goal here is to get Richard Heathfield to ...
    (comp.lang.c)
  • Re: Simple boolean expression evaluator
    ... >I am searching for a simple function that will take a string of boolean ... >expressions like: ... >And return a boolean result. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Richard Heathfields lie
    ... searching it: but, the simplest possible search provides 37 hits. ... Not even discussing the merits of a libel that consists of claiming ... Richard Heathfield searched for spinoza1111 and that came up blank. ... Is indeed libellous in that he accuses Richard not only of lying but doing so with malicious intent. ...
    (comp.lang.c)
  • Dynamic SQL to call a function with RETURN value?
    ... I have done quite a bit of searching ... and 'trial and error' without much success. ... In an Anonymous Block, if I had a list of the ... FUNCTION test_positiveRETURN BOOLEAN AS ...
    (comp.databases.oracle.misc)
  • Re: Good news.....
    ... Richard Bisby who was born there in the start of the 1800s ... and who I had been searching for. ... "I have searched our records and found an entry for a Richard ... Bisby born on 15th June 1801 and who was baptised in King's ...
    (soc.genealogy.britain)