Joshua Barretto
Joshua Barretto
Thanks, this is ideal. It seems there is a conflict though, but this should be a trivial change.
Configurable context is something I plan to add to ariadne's rewrite (you can see the `ariadne2` branch for current progress, if you're curious).
Thanks for the PR. Sorry, it got lost in my notifications. I think this is a positive change, although I'm surprised it's been stable for so long already: I'm used...
Looks like it needs a `cargo fmt`.
Hmm, you're right that this is a bit of an annoyance. `choice` supports > 26 because it allows for nesting, but of course the same does not apply for `pratt`....
An alternative solution might be to allow `pratt` to work with arrays/vectors as `choice` does. This would require boxing the operators, but that's not necessarily a problem.
It would make it a bit harder for it to optimise most likely, yes. The compiler might still be able to perform devirtualisation if it's smart enough though.
I made an attempt to implement this a while back but ran into issues. I might attempt it again later.
I've considered this a few times, but in practice it's far from a convention to represent the two as a tuple: folks often create a `struct Spanned(T, Span);` type that...