Module lower

Module lower 

Source
Expand description

AST to IR Lowering Pass

Converts the parsed AST into the AI-facing IR format. This pass:

  • Generates unique IDs for all definitions
  • Infers types where needed (or uses placeholders)
  • Propagates evidentiality through expressions
  • Normalizes pipeline operations

Structs§

LoweringContext
Lowering context

Functions§

lower_source_file
Lower a complete source file to IR