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

Expand description

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

Structs

Functions

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.

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.

Parses parser from zero up to count times.

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

Parses an escaped string by first applying parser which accept the normal characters which do not need escaping. Once parser can not consume any more input it checks if the next token is escape. If it is then escape_parser is used to parse the escaped character and then resumes parsing using parser. If escape was not found then the parser finishes successfully.

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

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

Skips input until end is encountered or end indicates that it has committed input before failing (attempt can be used to continue skipping even if end has committed input)

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

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

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

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

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

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

Parses p zero or more times ignoring the result.

Parses p one or more times ignoring the result.

Skips input until end is encountered or end indicates that it has committed input before failing (attempt can be used to make it look like it has not committed any input)

Takes input until end is encountered or end indicates that it has committed input before failing (attempt can be used to make it look like it has not committed any input)