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

Reply via email to