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 exactlyn
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 betweenn
andm
digits, returning the numerical value. - n_
to_ ๐m_ digits_ padded Consume betweenn
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.