Converting perl to python available?

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Fri Nov 2 13:00:30 EST 2001


Sat, 27 Oct 2001 13:03:57 +0200, Gerhard Häring <gh_pythonlist at gmx.de> pisze:

> Seriously, has there ever been a translator from one language to
> another that did not produce an absolute mess?

p2c converts Pascal to readable C. OTOH the result is not necessarily
fully equivalent to the original (by design).

For example it replaces Pascal's length-prefixed strings with C's
null-terminated strings and is even clever enough to replace
    s[0] := Chr(n);
with
    s[n] = '\0';
but it won't work when the program relies on string representation
in a harder way.

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^
QRCZAK



More information about the Python-list mailing list