Hi Kilon, Stef, the SmaCC python parser is in the SmaCC repository on github.
It should be loaded if you use the development version of SmaCC. Thanks to past work on Python (and Damien and Jean-Baptiste help), there is a lot of python code samples to test it ;) But, as far as I know, the AST building code may not be complete. Thierry 2015-01-11 12:25 GMT+01:00 stepharo <[email protected]>: > Thierry goubier nicely helped us with a Parser (just parsing) python code > with Smacc. > I do not remember where we put the code. > > Stef > > Le 9/1/15 19:30, kilon alios a écrit : > >> Hello guys I am learning PettitParser , I dowloaded the video tutorials >> of Tudor Girba (very good tutorial Tudor , well done ) and other >> documentation and I was wondering if a parser for Python already exists . I >> hope I am not asking something obvious. >> >> For my project I want to parse python types , that will be given to me as >> strings , to pharo objects. So that means parsing lists, dictionaries and >> other usual candidates. For example a python list is like >> >> '[1, 3, 50, [45, 'hello', 0.2], 63]' >> >> etc >> >> Anyone already worked on such problem ? >> >> >> > >
