Parsing library for Python?

Harry George harry.g.george at boeing.com
Fri Feb 20 06:24:54 EST 2004


Viktor Rosenfeld <rosenfel at informatik.hu-berlin.de> writes:

> Hi, 
> 
> I need to create a parser for a Python project, and I'd like to use process
> kinda like lex/yacc.  I've looked at various parsing packages online, but
> didn't find anything useful for me:
> 
> - PyLR seems promising but is for Python 1.5
> - Yappy seems promising, but I couldn't get it to work.  It doesn't even
> compile the main example in it's documentation
> - mxTexttools is way complicated.  I'd like something that I can give a BNF
> grammar to handle.
> 
> Is there a good parsing module for python that I missed?
> 
> TIA,
> Viktor
http://www.python.org/sigs/parser-sig/

I used Ply for a project a while ago.  It felt comfortable.
http://systems.cs.uchicago.edu/ply/
-- 
harry.g.george at boeing.com
6-6M21 BCA CompArch Design Engineering
Phone: (425) 342-0007



More information about the Python-list mailing list