J
junk1
I have a problem with a program I am designing. Basically at some point
it will be passed a random logic query, for example...
"(A=B and C=D) OR (E=F)"
....the brackets and 'AND' and 'OR' statements may be in any order and
there maybe any number of '=' expressions.
I can deal with evaluating the 'A=B' etc and so the statment above
becomes...
"(true AND false) OR (true)"
....which of course evaluates to true.
What I am stuck on is writing something that evaluates all the AND and
OR and '()' logic.
Is there an easy way to evaluate this?
Thanks
David Bevan
http://www.davidbevan.co.uk
it will be passed a random logic query, for example...
"(A=B and C=D) OR (E=F)"
....the brackets and 'AND' and 'OR' statements may be in any order and
there maybe any number of '=' expressions.
I can deal with evaluating the 'A=B' etc and so the statment above
becomes...
"(true AND false) OR (true)"
....which of course evaluates to true.
What I am stuck on is writing something that evaluates all the AND and
OR and '()' logic.
Is there an easy way to evaluate this?
Thanks
David Bevan
http://www.davidbevan.co.uk