On 13 August 2011 17:28, Damien Pollet <[email protected]> wrote:
> On 13 August 2011 16:23, Lukas Renggli <[email protected]> wrote:
>> Ahh, I didn't understand that you try parse nested structures :-)
>>
>> I discussed with Doru at some point about that and I believe he
>> intended to implement some support for it, but I don't know the
>> current state. Maybe you want to check with him?
>
> I now realize that this should more or less work:
>
> #any asParser ==> [:node | elementParser parse: node]
>
> But in case of error it would return the inner petitfailure rather
> than a proper one about the position in the outer stream…

This is kind of ambiguous of how to report such nested errors. I
wonder if you couldn't avoid all the troubles if you just used a flat
string, instead of a preprocessed one?

Lukas

-- 
Lukas Renggli
www.lukas-renggli.ch

Reply via email to