chumsky
chumsky copied to clipboard
Add a `spanned` method for automatically wrapping the parser result in a `Span`
This would be a very simple utility method I feel is missing right now, as a shorthand:
parser.map_extra(|it, e| (it, e.span()))
// into
parser.spanned()
It's not essential or anything, but it'll definitely be nice to have.