How to write a language parser ?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sat Feb 23 01:06:23 CET 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