On 10 January 2015 at 18:32, 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?

Maybe one can take inspiration from
http://www.cs.nott.ac.uk/~gmh/monparsing.pdf (see section 8) for
handling the offside rule? PetitParser is, after all, a parser
combinator library.

frank

> 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"

Reply via email to