xur-bytecode 0.1.10

The register-based bytecode of the Xur language, and lowering to it
Documentation
//! Xur's bytecode, and lowering resolved syntax to it.
//!
//! Each function becomes a control-flow graph of basic blocks over virtual
//! registers (see [`ir`]). The shape is close to Cranelift's IR, so a JIT can
//! later compile the same code the interpreter runs.

mod display;
pub mod ir;
mod items;
mod lower;
mod signature;
mod types;

pub use display::display_function;
pub use ir::{
    Block, BlockId, Constant, Decorator, DefRef, Function, Inst, InstKind, RecordFields, Reg,
    RtType, Terminator, TypeArg,
};
pub use items::{ItemIndex, ItemRef};
pub use lower::lower;
pub use signature::{FieldSig, FnSig, ParamSig, TypeSig, VariantSig, fn_signature};
pub use types::{rt_type, type_def, type_name};
pub use xur_ast::{BinOpKind, UnOp};

#[cfg(test)]
mod tests;