"Will Stuyvesant" <hw***@hotmail.com> wrote in message
news:cb**************************@posting.google.c om...
[Bruce Dickey] [Bruno Desthuilliers]
Bruce Dickey wrote:
> Hi,
>
> I have some PHP scripts I'm moving from my web server to the local
PC.> They just do file manipulation.
>
> Anybody know of a tool for translating PHP to Python?
Er... What about a programmer ?-)
(sorry, could not resist)
Bruno
Heh heh. Point taken. I actually *was* assuming I would be the tool --
...
It seems to me that for folks migrating from PHP to Python, a translator
would be a handy tool.
Um, was the point was really taken? Translating programming languages
is *very* hard. Otherwise, it would be possible to just translate
Python to C, with all the obvious benefits.
Perhaps automatic translation of some standard PHP patterns is
possible? No, still too hard. Think about it.
--
The subspace _W inherits the other 8 properties of _V. And there
aren't even any property taxes.
-- J. MacKay, Mathematics 134b
Yes, it was really taken. I know its hard, but not impossible. Source
translators exist for a number of languages, such as Basic to Pascal, Pascal
to C, C to Pascal, VB to Python, Java to C++....
Some are only partial, but that provides a good start.
That people have created compilers for that pathological language C++ shows
what can be done with determination. PHP is a (much) simpler language.
I have no plans to write a PHP to Python translator, however. I have only a
few small scripts to convert.
Bruce