Skip to main content

many

Function many 

Source
pub fn many<'lex, T, E, F>(
    lex: RefLexer<'lex>,
    parser: F,
) -> Parser<'lex, Vec<T>, E>
where F: Fn(RefLexer<'lex>) -> Parser<'lex, T, E>,
Expand description

Parses zero or more occurrences of parser until it fails. Returns the collected items and the updated lexer.