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 -- http://mail.python.org/mailman/listinfo/python-list