Function arithmetic_parser::with_span
source ยท pub fn with_span<'a, O>(
parser: impl FnMut(InputSpan<'a>) -> NomResult<'a, O>,
) -> impl FnMut(InputSpan<'a>) -> NomResult<'a, Spanned<'_, O>>
Expand description
Wrapper around parsers allowing to capture both their output and the relevant span.