Or, in which cases results are lost/merged silently?
Only in one case: When merging a subtree containing .as(…) with
another subtree that doesn’t. The solution is in most cases to add more
annotations (.as).
thank you for your answer and thank you for Parslet!
Could I easily add some extension code to get a message in this case,
too? If yes, where is/might be the “start point”?
Kind regards,
Axel
Kaspar S. wrote in post #1114730:
Or, in which cases results are lost/merged silently?
Only in one case: When merging a subtree containing .as(…) with
another subtree that doesn’t. The solution is in most cases to add more
annotations (.as).
Could I easily add some extension code to get a message in this case,
too? If yes, where is/might be the “start point”?
Probably
Such a feature would be quite the opposite of what result flattening is
about - and would probably not make it into parslet, unless done
cleverly. As is, for example, the case with error reporters that can be
swapped out.
I think, I haven’t understood the “philosophy” of Parslet yet. There are
one or two more issues, where I haven’t understood why Parslet is
“thinking” the way it does. But I must admit, Parslet is the first
Parser I use (and it is the first time, I use Parslet) and I’m not a
professional programmer. I think, I will have to work with it quite a
lot more.
The parslet mailing list has a bunch of friendly people that don’t mind
helping out. Welcome over there!
Such a feature would be quite the opposite of what result flattening is
about …
I think, I haven’t understood the “philosophy” of Parslet yet. There are
one or two more issues, where I haven’t understood why Parslet is
“thinking” the way it does. But I must admit, Parslet is the first
Parser I use (and it is the first time, I use Parslet) and I’m not a
professional programmer. I think, I will have to work with it quite a
lot more.
Ah, that’s the problem (gmane). On http://librelist.com/browser/ruby.parslet/
I see a lot more discussions on Parslet. I’ll read through the archive
and see if I find helpful things.
Thank you
Axel
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.