Expand description
CJC MIR Executor (Reference Interpreter)
Executes a MIR program by interpreting it directly. This replaces the
tree-walk AST interpreter (cjc-eval) with one that operates on the
lowered MIR representation.
The behavior must be identical to cjc-eval for all existing programs
(Parity Gate G-1 / G-2).
Structs§
Enums§
Functions§
- lower_
to_ mir - Lower an AST program to MIR and return it (for inspection).
- run_
program - run_
program_ cfg - Run a full AST program through the CFG-based MIR pipeline.
- run_
program_ monomorphized - Run a full AST program through the MIR pipeline with monomorphization + optimization.
- run_
program_ optimized - Run a full AST program through the optimized MIR pipeline.
- run_
program_ optimized_ with_ executor - Run a full AST program through the optimized MIR pipeline, returning executor.
- run_
program_ type_ checked - Run a full AST program with the type-checking compile-time gate enabled.
- run_
program_ with_ executor - Run a full AST program and return the executor (for inspecting output, etc.)
- run_
program_ with_ modules - Run a multi-file CJC program starting from the entry file path.
- run_
program_ with_ modules_ executor - Run a multi-file CJC program and return the executor for inspection.
- type_
check_ program - Run a full AST program through the HIR -> MIR -> MIR-Exec pipeline.
Run the CJC type checker on
program. - verify_
nogc - Run NoGC verification on a program’s MIR. Returns Ok(()) if clean, or a descriptive error message.