Python parser

Lie Ryan lie.1296 at gmail.com
Mon Mar 2 11:19:19 CET 2009


Clarendon wrote:
> Can somebody recommend a good parser that can be used in Python
> programs?

Do you want parser that can parse python source code or parser that
works in python? If the latter, pyparsing is a popular choice. Ply is
another. There are many choice:
http://nedbatchelder.com/text/python-parsers.html

For simple parsing, the re module might be enough.

> I need a parser with large grammar that can cover a large
> amount of random texts.

Random text? Uh... what's the purpose of parsing random text?



More information about the Python-list mailing list