Transpiler from a simple programming language to Rust source code, based on LLVM tutorial.
This is not a fully implemented programming language nor intended for usage. The language only contains several basic constructs. Let's call it a "mini language". Transpiler converts those constructs to Rust code which can then be built and executed. Motivation behind the project is strictly for my personal educational purpose regarding general processes that go into implementation of programming languages.
- Install Rust.
- Download the project.
- Project folder contains ./example folder where input.txt is located. That file contains a few commands written in a "mini language".
- Navigate to project directory using terminal and run cargo run command.
- Program will output a file called output.rs to the same ./example folder. The file will contain Rust code generated from simple instructions written in a "mini language".
- If the syntax is correct, build and run output.rs program using rustc or cargo commands.