How to write a language parser ?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Fri Feb 22 19:06:23 EST 2013


On Fri, 22 Feb 2013 18:29:42 +0200, Timothy Madden wrote:

[...]
> For that I would like to write a php parser, in order to detect the
> proper breakpoints line for statements spanning multiple lines.
> 
> Is there an (open-source) way to do to this in python code ? 

Try pyparsing:

http://pyparsing.wikispaces.com/



-- 
Steven



More information about the Python-list mailing list