[antlr-interest] Grammar for search criteria
Chris Black
chris at lotuscat.com
Tue Oct 25 13:37:11 PDT 2005
tech at damle.name wrote:
>We're trying to build a language for specifying search criteria
>something like
> (CompanyName LIKE 'A%') AND (CompanyRevenue >= 1000000 AND Year =
>2000)
>
>Are there any parsers generated for language similar to above ? Would
>greatly appreciate if someone can give any pointers.
>
>Thanks,
>
>S
>
>
This seems quite SQL-like to me. If you check out
http://antlr.org/grammar/list you will see a few SQL-related parsers.
One of these should give you some hints.
Chris
More information about the antlr-interest
mailing list