mamba 0.3.6

A transpiler which converts Mamba files to Python 3 files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
macro_rules! to_py {
    ($source:expr) => {{
        let ast = parse(&$source).unwrap();
        let checked = check_all(&[*ast]).expect("Type checker should pass");
        let ast_ty = checked.first().expect("Input as lost by checker");
        let core = gen(&ast_ty).unwrap();
        format!("{core}")
    }};
}

pub mod collection;
pub mod control_flow;
pub mod function;