air-mir 0.4.0

Intermediate representation for the AirScript language
Documentation
1
2
3
4
5
6
7
8
/// This trait should be implemented on types which handle generating code from AirScript MIR
pub trait CodeGenerator {
    /// The type of the artifact produced by this codegen backend
    type Output;

    /// Generates code using this generator, consuming it in the process
    fn generate(&self, ir: &crate::ir::Mir) -> anyhow::Result<Self::Output>;
}