Skip to main content

Crate hamelin_lib

Crate hamelin_lib 

Source
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§

Indent

Constants§

VERSION

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