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