Re: Simple boolean expression evaluator
- From: marek jedlinski <marek@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Jun 2005 02:09:48 +0200
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.)
.
- Follow-Ups:
- Re: Simple boolean expression evaluator
- From: Richard Marchand
- Re: Simple boolean expression evaluator
- Prev by Date: Advantage and VMware Problems
- Next by Date: Re: Advantage and VMware Problems
- Previous by thread: Re: Simple boolean expression evaluator
- Next by thread: Re: Simple boolean expression evaluator
- Index(es):
Relevant Pages
|