[antlr-interest] Antlr grammar for regular expressions

srđan bejaković s.bejakovic at gmail.com
Tue Jul 31 07:32:46 PDT 2007


I'm trying to write an engine that goes the other way, meaning it generates
strings that conform to a regular expression (for populating data files for
testing).

On 7/31/07, Matt Benson <gudnabrsam at yahoo.com> wrote:
>
>
> --- srðan bejakoviæ <s.bejakovic at gmail.com> wrote:
>
> > Hi all,
> >
> > does anyone know of an Antlr grammar for parsing
> > (perl or java) regular
> > expressions? I started implementing something like
> > this, but I don't want to
> > (suboptimally) reinvent something that probably
> > already exists. Thanks,
>
> Why would you need to do this?  There are enough regex
> libraries available that I can't imagine why you would
> need to implement your own... ANTLR is cool, but if
> you're already looking for prior art, why is it
> important that it be implemented using ANTLR?
>
> -Matt
>
> >
> > Srdan
> >
>
>
>
>
>
> ____________________________________________________________________________________
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
> news, photos & more.
> http://mobile.yahoo.com/go?refer=1GNXIC
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070731/e6d13b85/attachment-0001.html 


More information about the antlr-interest mailing list