2018-01-10 14:41 GMT+01:00 Serge Stinckwich <serge.stinckw...@gmail.com>:

>
>
> On Wed, Jan 10, 2018 at 2:35 PM, Thierry Goubier <
> thierry.goub...@gmail.com> wrote:
>
>>
>>
>> 2018-01-10 14:26 GMT+01:00 Serge Stinckwich <serge.stinckw...@gmail.com>:
>>
>>>
>>>
>>> On Wed, Jan 10, 2018 at 2:23 PM, Julien <julien.delplan...@inria.fr>
>>> wrote:
>>>
>>>> Hello Serge,
>>>>
>>>> Do you mean pieces of code you wrote in Python using Numpy that you
>>>> want to transform to Smalltalk code using PolyMath?
>>>>
>>>> It’s kind of the other way around of this project. :-)
>>>>
>>>>
>>> ​yes this is exactly the opposite :-(​
>>> ​I guess I need a Python parser and after that I can do AST
>>> transformation ...
>>>
>>
>> Hi Serge,
>>
>> there is a Python2.7 parser with AST that could be used.
>>
>
>
> ​yes I might have a look ... where is the code ?
>

SmaCC on github. Look for SmaCC-Python and SmaCC-Python-Tests.If you're
using Moose,
you should be able to import just SmaCC-Python from the github repository.
There is even a
BaselineOfPythonParser, but I haven't used it.

Thierry


> ​
>
> --
> Serge Stinckwich
> UMI UMMISCO 209 (IRD/UPMC/UY1)
> "Programs must be written for people to read, and only incidentally for
> machines to execute."http://www.doesnotunderstand.org/
>

Reply via email to