Parsing: request for pointers
Steven D'Aprano
steven at REMOVE.THIS.cybersource.com.au
Wed Nov 12 01:10:41 EST 2008
On Tue, 11 Nov 2008 11:59:50 -0800, André wrote:
> 4. I want to do this only using modules in the standard Python
> library, as I want to use this to learn about the basics of parsing.
> So, please don't *simply* suggest to use a third-party module, such
> as
> [1] plex, [2] yapps, [3] pyparsing
> The learning journey is more important for me than just having a
> canned solution to my (current) parsing problem.
Believe me, there is no canned solution to your current parsing problem.
Once you have a parser engine (e.g. pyparsing) you still have to build a
parser, and that's not necessarily trivial.
Other than that, try this:
http://docs.python.org/library/shlex.html
--
Steven
More information about the Python-list
mailing list