Skip to content
/ vc Public

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

Notifications You must be signed in to change notification settings

oznakn/vc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published