A fun little Rust compiler, exploring the Rust programming language & minimalist programming. WIP.
Currently targets a subset of C called VC, by Jingling Xue.
- Clone the repository.
git clone [email protected]:HamishPoole/RustCompiler.git
- Build using build locally.
source build_locally.sh
- Either install locally via install locally
source install_locally.sh
- Or alias the build binary to vc
alias vc="./vc"
- Parse a file and print the abstract syntax tree with the following command.
vc parse <filepath>
- Parse, and print out the original file from the abstract syntax tree using unparse.
vc unparse <filepath>