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?
Lukas On 13 August 2011 15:17, Damien Pollet <[email protected]> wrote: > On 13 August 2011 15:06, Lukas Renggli <[email protected]> wrote: >> Can you give a real-world example that shows what you want to do? Do >> you just want to customize the error message if elementParser fails? > > I want to parse arrays of strings, while also parsing each element > depending on where the array parse goes, e.g: > > #('command' '--option' '123') > > With a parser defined roughly like: > (PPElementParser on: (#word asParser plus token end)) , > (PPElementParser on: ('--' asParser , #word asParser plus token > end ==> [:nodes | Option named: nodes second]) , > (PPElementParser on: (#digit asParser plus token end ==> [:token | > token value asNumber]) > > > -- > Damien Pollet > type less, do more [ | ] http://people.untyped.org/damien.pollet > > -- Lukas Renggli www.lukas-renggli.ch
