Re: Parsing binary AND/OR expressions, with brackets

[email protected] ("Ted Zlatanov") 18 May 2004 10:57:48 -0400
Newsgroups perl.recdescent
Organization Теодор Златанов @ Cienfuegos
Message-ID <[email protected]>
Look at cfperl:

ftp://ftp.lifelogs.com/pub/cfperl-latest.tar.gz

it has a separate P::RD grammar (there are several grammars for
distinct purposes) that analyzes cfengine-style conjunctions and
disjunctions; it should be pretty easy to adapt that to your needs.
It actually produces an expression tree that can be evaluated later,
since the value can change depending on the content of each term.
So that may be useful for you as well.

Ted