Re: [Pharo-project] [Moose-dev] Re: how to deal with string position in relation to cr/crlf

2011-04-28 Thread Toon Verwaest
Indeed. The problem is that the token of PetitParser only knows the character position from the stream. This would mean that we would have to modify the tracking of the position with extra information. Is there no other option? If what you are doing is relating it back to the original source

Re: [Pharo-project] [Moose-dev] Re: how to deal with string position in relation to cr/crlf

2011-04-28 Thread Tudor Girba
Hi, On 28 Apr 2011, at 10:55, Toon Verwaest wrote: > What is the problem exactly? Do you somewhere rely on exact position in the > complete string? Yes, I need to rely on this position afterwards, for example, for relating model pieces to the source code. The question is how to retrieve and ho