Skip to main content

Module parser

Module parser 

Source
Expand description

Custom natural-language date parser for TARDIS.

Pipeline: input string -> lexer (tokens) -> grammar (AST) -> resolver (Zoned). Public submodules: ast, token, error (for library consumers). Internal submodules: grammar, lexer, resolver, suggest.

Re-exports§

pub use error::ParseError;

Modules§

ast
Abstract syntax tree for parsed date expressions.
error
Parser error types with span-based diagnostics.
token
Token types and span tracking for the TARDIS lexer.

Functions§

parse
Parse a natural-language date expression into a jiff::Zoned datetime.
parse_range_with_granularity
Parse any expression and resolve it as a range with implicit granularity.