Parsing in Python

Alex Martelli aleax at
Sat Feb 22 10:47:08 CET 2003

Paul Rubin wrote:

> Anyone know of parser generator tools (along the lines of Yacc) that
> are written in Python and generate Python-callable code?  I notice
> that CPython itself uses its own parser generator (pgen.c) but it
> generates C code.  I suppose I could just use Yacc and interface the
> resulting parser using Swig, but ugh.

I think you may be looking for Ply:

I use Spark, but it doesn't really generate code, while I believe
Ply does.


More information about the Python-list mailing list