Expand description
Compilation pipeline for XLOG programs
This module compiles the core XLOG AST into execution plans. The compilation process consists of:
- Parsing: Convert source text to AST (
parser::parse_program) - Stratification: Analyze negation/aggregation dependencies (
stratify::stratify) - Lowering: Transform AST to Relational IR (
lower::Lowerer::lower_program)
The Compiler struct orchestrates these phases and provides a single entry
point via the compile method. User-defined functions are a source-level
normalization step: callers using this low-level compiler must expand them
before compilation. Execution-facing LogicProgram APIs perform that
normalization for parsed and source inputs.
Structs§
- Compiler
- The XLOG compiler orchestrates the full compilation pipeline.
Functions§
- compile
- Convenience function to compile source in one call.
- load_
modules - Load modules for an entry source file.