Let me first say that I am NOT looking for automatic solutions here. I want to translate the code from Python to Smalltalk, because I noticed that some very simple sentences can be automatically translated, examples:
Assigning a variable to a value
Python
i = 1
Smalltalk
i := 1.
Create a new instance of the class
Python
instance = module.ClassName()
Smalltalk
instance := ClassName new.
A for cycle
Python
for a in [0,1,2]: print (str(a)+str(a))
Smalltalk
etc. (while loops, conventions, etc.). My idea is to have a tool that translates all these extremely βsimpleβ cases, and then I can finish or train the rule system manually.
Do you know any translation tool or programming library that can help me?
If you have not heard of any tool, what method / template will you use to implement such a translation? Can you provide a link to an example?
thanks
source share