parser question
Kent Johnson
kent37 at tds.net
Wed Oct 19 11:58:33 EDT 2005
Micah Elliott wrote:
> You might be able to tackle this easily enough with REs if your
> structures don't nest arbitrarily. It's hard to tell if this deserves
> a formal grammar based on the example. If it does, you could try PLY
> <http://www.dabeaz.com/ply/> (which I've had a pleasant experience
> with in the past) or any of the other parsers listed on the PLY site's
> "Other Python Parsing Tools".
A more complete list is here:
http://www.nedbatchelder.com/text/python-parsers.html
I have found pyparsing easy to work with.
Kent
More information about the Python-list
mailing list