Module time::parsing::combinator
source ยท Expand description
Implementations of the low-level parser combinators.
Modulesยง
- rfc ๐Combinators for rules as defined in a standard.
Functionsยง
- any_digit ๐Consume exactly one digit.
- ascii_char ๐Consume exactly one of the provided ASCII characters.
- Consume exactly one of the provided ASCII characters, case-insensitive.
- exactly_n_digits ๐Consume exactly
n
digits, returning the numerical value. - Consume exactly
n
digits, returning the numerical value. - first_match ๐Consume the first matching item, returning its associated value.
- n_to_m ๐Consume between
n
andm
instances of the provided parser. - n_to_m_digits ๐Consume between
n
andm
digits, returning the numerical value. - n_to_m_digits_padded ๐Consume between
n
andm
digits, returning the numerical value. - one_or_more ๐Consume one of or more instances of the provided parser. The parser must produce the unit value.
- opt ๐Optionally consume an input with a given parser.
- sign ๐Parse a โ+โ or โ-โ sign. Returns the ASCII byte representing the sign, if present.
- zero_or_more ๐Consume zero or more instances of the provided parser. The parser must return the unit value.