A compiler for METU CENG444's programming langauge v, for semester 20191. To see the reference of the language, click here.
vc
is built with Rust, using the lalrpop parser generator, with LALR(1) mode enabled.
For now, vc
only generates RISC-V 64 bit target code.
Rust
- riscv-gnu-toolchain
- rv8
In order to run the code, type cargo run -- compile examples/simple.v
. This will generate simple.s
file in the examples
directory.
Then, type run.sh simple
. This will automatically runs assembler and linker for the assembly file, and runs the target code using the rv8
simulator.
- Ozan Akın