Boolean parser..

Paul McGuire ptmcg at austin.rr.com
Fri Oct 5 11:02:41 EDT 2007


On Oct 4, 3:00 pm, timar... at gmail.com wrote:
> On Oct 5, 7:29 am, Abandoned <best... at gmail.com> wrote:
>
> > Hi..
> > I try a boolean parser in python since 1 weak.. But i can't do this
> > because this is very complicated :(
> > Do you know any blooean parser script in python or how do i write a
> > boolean parser ?
> > example query: ((google or yahoo) or (live msn)) not web
> > I'm sorry my bad english.
> > King Regards..
>
> Try the pyparsing module (google it)
> They have several examples.

The pyparsing wiki has this online example:
http://pyparsing.wikispaces.com/space/showimage/searchparser.py.

-- Paul




More information about the Python-list mailing list