[antlr-interest] Antlr grammar for regular expressions

Matt Benson gudnabrsam at yahoo.com
Tue Jul 31 07:39:32 PDT 2007


--- srðan bejakoviæ <s.bejakovic at gmail.com> wrote:

> 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).

Well.... good answer.  :)  I'm out!

-Matt

> 
> 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
> >
> 



      ____________________________________________________________________________________
Shape Yahoo! in your own image.  Join our Network Research Panel today!   http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 




More information about the antlr-interest mailing list