Transpile Rust to C.
We have only completed upto syntax analysis part of transpiler, The checkSyntax.sh only checks for syntatically errors/
This project intends to transpile a code written in Rust to C. For phase 1 we consider only selected aspects of Rust. We may later improve the transpiler to transpile standard Rust. We hereby define TRust as subset of Rust which may not contain all features.
Please refer TRust Doc (if link broken then please go to docs folder and TRust.md) to know the syntax of Rust and which feature subsets we have implemented.
- Clone this repo to your local machine.
- change directory to CTRust folder.
Install Bison and Flex
CTRust$ sudo apt-get install bison flexMake ./build.sh executable
CTRust$ sudo chmod +x ./build.shMake ./build/checkSyntax.sh executable
CTRust$ sudo chmod +x ./build/buildSyntax.shRun ./build.sh, this generates a executable in build folder.
CTRust$ ./build.shchange directory to build and execute checkSyntax.sh on appropriate rust script.
CTRust$ cd build
CTRust/build$ ./checkSyntax.sh test.sh