On Oct 4, 3:00 pm, [EMAIL PROTECTED] wrote: > On Oct 5, 7:29 am, Abandoned <[EMAIL PROTECTED]> 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 -- http://mail.python.org/mailman/listinfo/python-list