Skip to main content

Module common

Module common 

Source
Expand description

Common parsing utilities shared across language implementations.

This module contains parser building blocks that are shared between different language implementations, such as ISO datetime parsing, number parsing, and the case-insensitive keyword helper.

Functions§

digit_number
Parse a sequence of digits as an i64.
four_digit_number
Parse a 4-digit number as u16.
iso_datetime
Parse ISO 8601 datetime format.
keyword_ci
Match an ASCII keyword case-insensitively.
two_digit_number
Parse a 1 or 2 digit number as u8.

Type Aliases§

ParserError
The error type used throughout the parsers.