(snip)> That's futile work. Programming languages cannot be translated. An "int"> or "for" in C might be something different from an "integer" or "for" in> Pascal. Just when it comes to structures, then every language has its> own object model, mostly incompatible with objects of other languages.

Java has the Serializable interface, such that a class that implements
it can have its Object converted to a byte stream, sent somewhere else,
and then converted back into the Object again.

Otherwise, there is XDR which is meant to be used when moving data
between different internal representations. (It will, for example,
convert floating point formats between otherwise incompatible systems.)