A Java to Rust transpiler written in Rust.
Java parsing -> IR -> Rust code generation.
Java parsing is done with tree-sitter-java. Find the grammar here.
Small intermediate representation to run transformations on, e.g., grouping of static class methods.
This is done by using the quote library which is well known in the context of Rust's
procedural macros. By using quote
, we can quasi-quote the Rust code we want to
generate. syn is used in case we need to run preprocessing for quote
.
prettyplease is used for pretty printing the resulting Rust code.
No!
Yes!