Expand description
Source front-end: turning tzdata text into a typed Database.
Pipeline within this module:
bytes --lexer::tokenize--> Vec<Line> --parser::parse_into--> DatabaseRe-exports§
pub use leap::parse_leap_source;pub use parser::parse_into;
Modules§
- leap
- Leap-source parsing (T11.2 — the grammar wall).
- lexer
- The lexer: bytes →
Lines ofFields. - names
- Case-insensitive, unambiguous-prefix matching for the English names
zicrecognises: month names, weekday names, and a handful of keywords (minimum,maximum,only). - parser
- The parser: lexed
Lines → a typedDatabaseofRule/Zone/Linkrecords. - records
- Lexical records: the output of the lexer, before any semantic interpretation.