paralegal_flow::ann::parse

Function delimited

Source
pub fn delimited<'a, A, P: Parser<I<'a>, A, Error<I<'a>>> + 'a>(
    p: P,
    delim: Delimiter,
) -> impl FnMut(I<'a>) -> IResult<I<'a>, A>
Expand description

Parse a TokenTree::Delimited with the delimiter character delim, applying the subparser p to the tokens in between the delimiters and return the result of the subparser.