Convert python script in ruby

I’ve been working on a Ruby script that does a great deal of the
translation from Python to Ruby, but it’s by no means a complete
solution, and I don’t know whether it ever will be.

Al

···

-----Original Message-----
From: gp [mailto:gp@NOSPAM.le.isac.cnr.it]
Sent: Friday, February 28, 2003 3:23 AM
To: ruby-talk ML
Subject: Convert python script in ruby

Hi,

Is there any software to convert python script in ruby?

Thanks!

gp-

Interesting, do you have a Python parser in there?

I have the starts of a python-to-ruby translator in Python (don’t throw
rotten tomatoes please, I wanted to check it out). Its very simple to do
that in Python since they export an API to the internal parser so you get
a full Python parser with AST representation “for free” (hint, hint matz
and I know you have it in the TODO).

I think our community would really benefit from such a tool; when we find
some extension they have that we want the tool would give a head start in
translating.

If your tool is close to complete I don’t want to put more effort into
mine. It was really just a hack I did when checking out Python. Is there a
way we can join forces and get something more complete faster?

Regards,

Robert Feldt

···

On Sat, 1 Mar 2003, Albert Chou wrote:

I’ve been working on a Ruby script that does a great deal of the
translation from Python to Ruby, but it’s by no means a complete
solution, and I don’t know whether it ever will be.