code-transpiler 0.1.0

Pure-Rust incremental port of the Code-Transpiler semantic/UAST engine
Documentation
1
2
3
4
5
6
7
8
9
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let go = r#"package main
func add(a int, b int) int {
    return a + b
}
"#;
    println!("{}", code_transpiler::transpile("go", "rust", go)?);
    Ok(())
}