Hi to all,
I develop a simple GUI which contains search criteria. User enters a
criteria and when click on OK, the app execute the corresponding SQL
statement.
The criteria could be a formula string such as:
((A OR B AND C) OR (D AND E)) OR F
I would like to parse this kind of formula in order to separate the
subsets (A OR B AND C), (D AND E), ... and then convert it to SQL
syntax.
Is there a simple way for doing that?
Thanks for your help
Marie
Oliver Wong - 30 Oct 2006 15:53 GMT
> Hi to all,
>
[quoted text clipped - 10 lines]
>
> Is there a simple way for doing that?
It's simple, if you know how. Learning how can take a while, though.
Google for "parser generators" or for "ANTLR".
- Oliver