[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] State of the PetitParser

From: Holger Hans Peter Freyther
Subject: Re: [Help-smalltalk] State of the PetitParser
Date: Sun, 29 Aug 2010 17:48:04 +0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2 Thunderbird/3.1.1

On 08/29/2010 05:30 PM, Paolo Bonzini wrote:

> Which failures are these?  I had ported an older version successfully.

PParserTest is failing trying to copy the string from 0 to 3 which is
obviously wrong. It is something that I have done wrong in the conversion of
PetitParser. As I said it is accessing member variables of PositionableParser
and they are different in GST, I tried to pick selectors and I still have to
understand where PositionableParser starts to count (0 or 1)... so it is more
a learning experience than a tough issue.

The code from the testcase that is failing is below and it fails as "'a'
readStream asPetitStream" is failing..

        parser := $a asParser.
        self assert: (parser parse: 'a' readStream) = $a.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]