what is the easiest way to parse a file

Dave Kuhlman dkuhlman at rexx.com
Wed Sep 3 13:00:12 EDT 2003


tagarwal wrote:

> Is there a library in python which could be used for parsing file
> based upon various sections

Do you have a grammar for the input files?  Is so, look at the
parser generators for Python, for example Plex, PLY, and others.

You might find some help in "Python 201 -- (Slightly) Advanced
Python Topics", Section 5, "Parsing", which is at:

    http://www.rexx.com/~dkuhlman/python_201/python_201.html

Dave

-- 
Dave Kuhlman
http://www.rexx.com/~dkuhlman
dkuhlman at rexx.com




More information about the Python-list mailing list