[][src]Module chonk::parsers::controlling

Parsers for controlling execution.

Functions

find_until

Match a parser until a predicate parser also matches, return the results as a Vec<_>.

find_when

Match a parser only if a predicate parser also matches, return the results.

find_when_not

Match a parser only if a predicate parser does not match, return the results.

optional

Match a parser and map its result to an Option<_>.

take_until

Match a parser until a predicate parser also matches, return a &str of all the matched input.