equiv of perl regexp grammar?

Ian Kelly ian.g.kelly at gmail.com
Thu Sep 13 14:54:41 EDT 2012


On Thu, Sep 13, 2012 at 5:30 AM, Neal Becker <ndbecker2 at gmail.com> wrote:
> I noticed this and thought it looked interesting:
>
> http://search.cpan.org/~dconway/Regexp-
> Grammars-1.021/lib/Regexp/Grammars.pm#DESCRIPTION
>
> I'm wondering if python has something equivalent?

The pyparsing module is a good option for building grammar parsers.
There's nothing that I know of that tries to slot them into regular
expressions like that.



More information about the Python-list mailing list