[antlr-interest] Simple grammar help needed

Richard Clark rdclark at gmail.com
Tue Jul 31 23:51:55 PDT 2007


My question is: simple regular expressions or complicated ones?

In any case, this sounds like a good place to use ANTLR.

 ...Richard


On 7/31/07, Kamal Verma <kverma at yahoo.com> wrote:
>
> I am new to the ANTLR, I have a requirement to parse following kind of
> input,
>
>
> (Name1=/regex/) AND (Name2='value')
> (Name1=/regex/) OR  (Name2='value')
> NOT (Name1=/regex/)
> ((Name1=/regex/) OR  (Name2='value')) AND Name2='value'
>
>
> Do you think it is too simple to try to write a lexer and parser for this ?
>
> Thanks in the advance,
> -K
>
>
>  ________________________________
> Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel
> and lay it on us.


More information about the antlr-interest mailing list