[Python-ideas] EBNF-module in stdlib

Guido van Rossum guido at python.org
Sat Mar 24 00:29:53 CET 2012

On Fri, Mar 23, 2012 at 10:35 AM, Stefan Behnel <stefan_ml at behnel.de> wrote:
> Lukas Lueg, 23.03.2012 17:50:
>> I started looking into RPython some time ago and found the included
>> parser-module highly useful. It provides an (again extended)
>> EBNF-parser with capable visitors to get parse-trees out of a simple
>> BN-syntax.
> There are a number of capable parser packages for Python, including
> pyparsing and some lex/yacc like parsers. I don't think the parser you
> mentioned above beats them in turns of wide spread application, but that
> would usually be a good sign for something being worth adding to the stdlib.

Also check out Lib/lib2to3/pgen2 in the repo. It comes with a Python
grammar but can be adapted to any grammar you want.

> Also note that there are certain requirements for a new stdlib package,
> including the donation by the author and the availability of an active
> maintainer for it as part of the stdlib.

--Guido van Rossum (python.org/~guido)

More information about the Python-ideas mailing list