tlq_fhirpath/
lib.rs

1//! FHIRPath Engine - Production-ready implementation with AST → HIR → VM architecture
2//!
3//! This crate provides a complete FHIRPath evaluation engine following the architecture:
4//! 1. **Parser** → AST (Abstract Syntax Tree)
5//! 2. **AST** → HIR (High-level Intermediate Representation)
6//! 3. **HIR** → VM (Virtual Machine with bytecode)
7//!
8//! # Architecture Overview
9//!
10//! ```text
11//! Expression String
12//!      |
13//!   Parser -> AST
14//!      |
15//! Semantic Analysis -> HIR (typed, optimized)
16//!      |
17//! Code Generation -> VM Plan (bytecode)
18//!      |
19//! VM Execution -> Result Collection
20//! ```
21
22pub mod analyzer;
23pub mod ast;
24pub mod codegen;
25pub mod context;
26pub mod conversion;
27pub mod engine;
28pub mod error;
29pub mod functions;
30pub mod hir;
31pub mod lexer;
32pub mod parser;
33pub mod resolver;
34mod temporal_parse;
35pub mod token;
36pub mod typecheck;
37pub mod types;
38pub mod value;
39pub mod variables;
40pub mod visualize;
41pub mod vm;
42
43// Re-export main types
44pub use context::Context;
45pub use conversion::{tlq_fhirpath_value_to_json, ToJson};
46pub use engine::{CompileOptions, Engine, EvalOptions, PipelineVisualization};
47pub use error::{Error, Result};
48pub use resolver::ResourceResolver;
49pub use value::{Collection, Value};
50pub use visualize::{VisualizationFormat, Visualize};