parsing - How to Parse Boolean Search Queries -


i need parse search query boolean parameters. example, if have query

(mexico or peru) , ((air , wind) or (big , little))

i want create several sub-queries based on operators. so, query give me following sub queries

mexico , air, wind
mexico , big , little
peru, air , wind
peru, big , little

does have idea algorithm use or maybe library me that?

thank you!


Comments

Popular posts from this blog

c# - IMAP GMAIL getting folder list problem -

PHP proxy to get XML: problem with URL arguments -