Python parser

Lie Ryan lie.1296 at
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:

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