[squeak-dev] Smalltalk to Python and back

Hans-Martin Mosner hmm at heeg.de
Thu Nov 1 13:49:40 UTC 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20121101/f11041b1/attachment.htm


More information about the Squeak-dev mailing list