Functions§
- any_
span - cached_
regex - Global regex cache — avoids recompiling the same pattern on repeated parser construction.
- dispatch_
byte - First-byte dispatch — O(1) branch selection by peeking the next byte.
- dispatch_
byte_ multi - First-byte dispatch with multiple bytes mapping to the same parser. Avoids duplicating parsers for bytes that share the same handler (e.g., digits 0-9).
- epsilon
- next_
span - one_of
- Flat N-way alternation — tries each parser in order with checkpoint backtracking.
- regex
- regex_
span - string
- string_
impl - string_
span - take_
until_ any_ span - Match one or more bytes until any byte in
excludedis found. Uses a 256-byte LUT for branch-free scanning—10-15x faster than regex for negated character classes like/[^;{}!,]+/. - take_
while_ byte_ span - Fast byte-level take_while — for ASCII predicates only.
- take_
while_ span - trim_
leading_ whitespace - trim_
leading_ whitespace_ mut - Convenience: skip leading whitespace, advancing the state offset.