Module pahs::combinators[][src]

Parser combinators.

Structs

Alternate

Try all parsers supplied via one in order and return the value of the first one that successfully parses.

Functions

count

Runs the specified parser n times, returning all parsed values in a Vec.

count_push_into

Runs the specified parser n times, pushing all values into the supplied Push value.

one_or_more

Runs the specified parser until it stops matching (but at least once), collecting all values into a Vec.

one_or_more_push_into

Runs the specified parser until it stops matching (but at least once), collecting all values into the supplied Push value.

optional

Wraps the specified parser, making it optional.

skip_count

Runs the specified parser n times, discarding the parsed values.

zero_or_more

Runs the specified parser until it stops matching, collecting all values into a Vec.

zero_or_more_push_into

Runs the specified parser until it stops matching, collecting all values into the supplied Push value.