there is also the python.ast model which gives the ability to parse the python syntax ( I can use this model because of my communication bridge with python) which I can use but if there is something already done with petitparser I would love to take a look too.
The documentation of module is in this link together with the structure of the python syntax https://docs.python.org/2/library/ast.html For now only python types concern me but I will need more as time passes. On Sat, Jan 10, 2015 at 8:32 PM, Tudor Girba <[email protected]> wrote: > Hi, > > The challenge with Python parsing is dealing with whitespace properly. > > Jan Kurs was working on such a parser. I do not know how advanced it is. > Jan? > > Cheers, > Doru > > > > On Fri, Jan 9, 2015 at 7:30 PM, kilon alios <[email protected]> wrote: > >> 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 ? >> >> >> > > > -- > www.tudorgirba.com > > "Every thing has its own flow" >
