converter from php to python
PHP
Switch branches/tags
Nothing to show
Latest commit cae4221 Sep 11, 2009 @taichino add file test
Permalink
Failed to load latest commit information.
tests add xml for ternary test Sep 11, 2009
README add overview and sample usage Sep 10, 2009
php2py.php add file test Sep 11, 2009

README

[ php2py - converter from php to python using phc ]
----------------------------------------------------------------------
php2py is a php script to convert php to python.
As input, this script accept syntax tree XML file generated by phc
instead of php code.

[ Requirements ]
----------------------------------------------------------------------
php2py.php requires "phc" (php compiler) installed.
you can download it at the following link:

http://www.phpcompiler.org/

[ Example Use ]
----------------------------------------------------------------------
$ phc --dump-xml=ast somecode.php > out.xml
$ ./php2py.php out.xml > somecode.py