Expand description
Hamelin core library — parser, AST, type-checker, and translation logic.
Start with parse to get an AST, then type_check to type-check it.
Each function has a _with_options variant that takes an options struct
built via bon::Builder for customising behaviour (interner, provider,
time range, etc.).
All functions return WithTranslationErrors<T> which can be converted to
Result via .result(), or destructured to access .output and .errors.
Re-exports§
pub use crate::time_range::TimeRange;pub use crate::tree::options::ExpressionTypeCheckOptions;pub use crate::tree::options::TranslateOptions;
Modules§
- antlr
- catalog
- completion
- err
- func
- interner
- String and type interner for memory-efficient storage.
- operator
- parser
- provider
- sql
- time_
range - translation
- tree
- types
Enums§
Constants§
Functions§
- parse
- Parse a Hamelin query string into an AST.
- parse_
and_ typecheck - Parse and type-check a Hamelin query string in one step.
- parse_
and_ typecheck_ with_ options - Parse and type-check a Hamelin query string with configurable options.
- parse_
with_ options - Parse a Hamelin query string with configurable options.
- type_
check - Type-check a parsed AST with default options.
- type_
check_ expression - Type-check an expression AST node with configurable options.
- type_
check_ with_ options - Type-check a parsed AST with configurable options.
- type_
check_ with_ provider - type_
check_ with_ time_ range