Skip to main content

Module compile

Module compile 

Source
Expand description

Compilation pipeline for XLOG programs

This module provides the main entry point for compiling XLOG source code into execution plans. The compilation process consists of:

  1. Parsing: Convert source text to AST (parser::parse_program)
  2. Stratification: Analyze negation/aggregation dependencies (stratify::stratify)
  3. 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.

Structs§

Compiler
The XLOG compiler orchestrates the full compilation pipeline.

Functions§

compile
Convenience function to compile source in one call.
load_modules
Load and validate modules for a source file.