Smalltalk to Python and back

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Smalltalk to Python and back

kilon
Probably I have mentioned this several times but I am working on a project for visual programming targeting 3d app blender. I am using currently pharo though I am still interested in squeak too and I have decided that in order to communicate with blender python to use a socket bridge. My project is named "Ephestos". Now what was wondering is the following, how difficult it would be to parse smalltalk to python. Ephestos is of course smalltalk , and blender uses python for its addon system. It would be great if extensions made in Ephestos could converted to python addons.

I am already planning to map smalltalk methods to Blender python api call, but I was wondering how easy it would be to parse that code to python.

So far I am aware of OMeta and Petit Parser libraries. What are your suggestions ?


Reply | Threaded
Open this post in threaded view
|

Re: Smalltalk to Python and back

Hans-Martin Mosner
Am 11/01/2012 01:42 PM, schrieb dimitris chloupis:
Probably I have mentioned this several times but I am working on a project for visual programming targeting 3d app blender. I am using currently pharo though I am still interested in squeak too and I have decided that in order to communicate with blender python to use a socket bridge. My project is named "Ephestos". Now what was wondering is the following, how difficult it would be to parse smalltalk to python. Ephestos is of course smalltalk , and blender uses python for its addon system. It would be great if extensions made in Ephestos could converted to python addons.

I am already planning to map smalltalk methods to Blender python api call, but I was wondering how easy it would be to parse that code to python.

So far I am aware of OMeta and Petit Parser libraries. What are your suggestions ?



    
Parsing is the simplest task in such a project, you probably won't even need OMeta or PP since your source language is Smalltalk and there's a pretty usable parser in the system (after all, the Smalltalk to C translation works with it).
Generating the Python code is not a parser task, but a code generator task, and you could use the C code generator as a model for that.
However, you'd also need to map the semantics from Smalltalk to Python, and no parser will help you with that.

Cheers,
Hans-Martin


Reply | Threaded
Open this post in threaded view
|

Re: Smalltalk to Python and back

Nikolay Suslov
In reply to this post by kilon
Hello,


Regards,
Nikolay

On Thu, Nov 1, 2012 at 4:42 PM, dimitris chloupis <[hidden email]> wrote:
Probably I have mentioned this several times but I am working on a project for visual programming targeting 3d app blender. I am using currently pharo though I am still interested in squeak too and I have decided that in order to communicate with blender python to use a socket bridge. My project is named "Ephestos". Now what was wondering is the following, how difficult it would be to parse smalltalk to python. Ephestos is of course smalltalk , and blender uses python for its addon system. It would be great if extensions made in Ephestos could converted to python addons.

I am already planning to map smalltalk methods to Blender python api call, but I was wondering how easy it would be to parse that code to python.

So far I am aware of OMeta and Petit Parser libraries. What are your suggestions ?






Reply | Threaded
Open this post in threaded view
|

Re: Smalltalk to Python and back

Enrico Schwass-2
In reply to this post by kilon
Hi Dimitris

Are you aware of 


The Blender-Verse interface. There are already bindings available

Hth
Enno

On 01.11.2012, at 21:42, dimitris chloupis <[hidden email]> wrote:

Probably I have mentioned this several times but I am working on a project for visual programming targeting 3d app blender. I am using currently pharo though I am still interested in squeak too and I have decided that in order to communicate with blender python to use a socket bridge. My project is named "Ephestos". Now what was wondering is the following, how difficult it would be to parse smalltalk to python. Ephestos is of course smalltalk , and blender uses python for its addon system. It would be great if extensions made in Ephestos could converted to python addons.

I am already planning to map smalltalk methods to Blender python api call, but I was wondering how easy it would be to parse that code to python.

So far I am aware of OMeta and Petit Parser libraries. What are your suggestions ?