Friends, I've been redirected from StackOverflow (http://stackoverflow.com/questions/10273513/translating-code-from-python-to-smalltalk) to here, may be you have better idea where to start. I want to do some automatic code translation from Python to Smalltalk because I've noticed some very simple sentences can be automatically translated. My guess is that sooner or later a mapping dictionary of rules is needed, but my interest is to have a very simple prototype working, like a code template from where to start working on, my experience in Python is limited so I will very appreciate any links or code you may provide. Here are some translation examples:
*Assigning a variable to a value* Python i = 1 Smalltalk i := 1. *Creating a new instance of a class* Python instance = module.ClassName() Smalltalk instance := ClassName new. * * *A for loop* Python for a in [0,1,2]: print (str(a)+str(a)) Smalltalk #(0 1 2) do: [: a | Transcript show: a + a; cr ]. Any links or code template for doing simple translation from Python to Smalltalk (or other programming language for the case). Cheers, Giordano -- You received this message because you are subscribed to the Google Groups "ply-hack" group. To view this discussion on the web visit https://groups.google.com/d/msg/ply-hack/-/q8degY6vl1QJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/ply-hack?hl=en.
