Function chumsky::recursive::recursive [−][src]
pub fn recursive<'a, I: Clone, O, P: Parser<I, O, Error = E> + 'a, F: FnOnce(Recursive<'a, I, O, E>) -> P, E: Error<I>>(
f: F
) -> Recursive<'a, I, O, E>
Expand description
Construct a recursive parser (i.e: a parser that may contain itself as part of its pattern).
The given function must create the parser. The parser must not be used to parse input before this function returns.