A pointer to a converter.
Dimitar Haralanov
dimitarh at inktomi.com
Mon May 7 20:33:07 EDT 2001
I don't really think that he was asking for the theoretical question
about deterministic automaton! After all, compilers (like gcc) are
software that translate one language to another. Furthermore, C and
Assembly have nothing in common.
I think that the biggest problem is in the difference in libraries. To
write a Perl-to-Python converter will most likely involve writing a
partial interpreter to include all the Perl code from the modules used and
then convert that to Python too.
Mitko
On 7 May 2001 23:14:14 GMT
scarblac at pino.selwerd.nl (Remco Gerlich) wrote:
> Wayne <infotechsys at pivot.net> wrote in comp.lang.python:
> > Can someone point me to a software
> > that will convert pearl to python. I tried
> > searching yahoo , but got no hits.
>
> This is probably theoretically impossible.
>
> A computer program can't even find out what another program does (for
> instance, it can't decide if a program will finish on some input), let
> alone write a program in another language that does the same thing.
>
> It might be possible to write a program that simply converts an idiom in
one
> language to the equivalent idiom in the other language, but for that to
work
> the languages must be *extremely* similar - and Perl and Python aren't.
>
> Even if it did work, the libraries aren't compatible.
>
> --
> Remco Gerlich
More information about the Python-list
mailing list