viraptor / phply

PHP parser written in Python using PLY
Other
364 stars 100 forks source link
language parsing php ply python

phply

phply is a parser for the PHP programming language written using PLY, a Lex/YACC-style parser generator toolkit for Python.

Why?

Good question. Because I'm crazy. Because it seemed possible.

Things I'm interested in doing with it:

What does it stand for?

How do you pronounce it?

If you're conservative, it's pronounced "pee aich ply". If you're liberal, it's "fiply". And if you're anarchist, pronounce it however you want. Who am I to tell you what to do?

What's working?

What's not?

Some things can't be parsed yet. They are getting fewer by the day, but there is still a fair amount of work to do:

Who's working on it?

See the AUTHORS file.

Troubleshooting

Couldn't create 'phply.parsetab'

Phply relies on ply to generate and cache some tables required for the parser. These have been generated with the latest available version of ply for the phply release. If you installed phply under a different user and a new ply was released, the parsetab file cannot be automatically updated. Your options are to:

How do I use it?