[Types-sig] Plea for help.

Guido van Rossum guido@CNRI.Reston.VA.US
Wed, 08 Dec 1999 11:34:44 -0500


> Paul Prescod wrote:
> 
> > Here's my plea for help: among the many "Python compiler"
> > projects out there there must be some good Python code for
> > walking around ASTs building type (or at least module)
> > representation objects. I think that JPython is wirtten in Java.
> > What else should I be looking at?

GMcM replied:

> Probably the Python2C stuff that reformats a standard Python 
> parse tree into something saner. Another possibility might be 
> John Aycock's stuff; but his Python grammar doesn't produce 
> an AST (it only verifies), and the grammar has some errors. I 
> think Aaron Watters also did a Python grammar (for 1.4?), but 
> I never looked at that.

Aaron's kjpylint contains a Python parser:
http://www.chordate.com/kwParsing/

David Jeske's pylink also contains one:
http://www.chat.net/~jeske/Projects/PyLint/download/pylint-19991121.py

I seem to be having problems with pylint, which is much newer;
the current kjpylint's parser is pretty robust as far as I can tell.

--Guido van Rossum (home page: http://www.python.org/~guido/)