Skip to main content

compile_program_to_c

Function compile_program_to_c 

Source
pub fn compile_program_to_c(prog: &CompiledProgram) -> Result<String, String>
Expand description

Lower a whole CompiledProgram to a self-contained C translation unit. Returns a typed refusal (Err) for any op/const/kind not yet lowered — the caller falls back to the AST emitter.