/vc

A small compiler for METU CENG444's programming language v, written in Rust.

Primary LanguageRust

vc, A Compiler for V

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.

Requirements

Getting Started

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.

Authors

  • Ozan Akın