Module combine::parser::repeat [] [src]

Combinators which take one or more parsers and applies them repeatedly.

Structs

Chainl1
Chainr1
Count
CountMinMax
Iter
Many
Many1
SepBy
SepBy1
SepEndBy
SepEndBy1
SkipCount
SkipCountMinMax
SkipMany
SkipMany1

Functions

chainl1

Parses p 1 or more times separated by op. The value returned is the one produced by the left associative application of the function returned by the parser op.

chainr1

Parses p one or more times separated by op. The value returned is the one produced by the right associative application of the function returned by op.

count

Parses parser from zero up to count times.

count_min_max

Parses parser from min to max times (including min and max).

many

Parses p zero or more times returning a collection with the values from p.

many1

Parses p one or more times returning a collection with the values from p.

sep_by

Parses parser zero or more time separated by separator, returning a collection with the values from p.

sep_by1

Parses parser one or more time separated by separator, returning a collection with the values from p.

sep_end_by

Parses parser zero or more times separated and ended by separator, returning a collection with the values from p.

sep_end_by1

Parses parser one or more times separated and ended by separator, returning a collection with the values from p.

skip_count

Parses parser from zero up to count times skipping the output of parser.

skip_count_min_max

Parses parser from min to max times (including min and max) skipping the output of parser.

skip_many

Parses p zero or more times ignoring the result.

skip_many1

Parses p one or more times ignoring the result.