Skip to content

HamishPoole/RustCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VC Compiler

A fun little Rust compiler, exploring the Rust programming language & minimalist programming. WIP.

Currently targets a subset of C called VC, by Jingling Xue.

Usage

Setup:

  • 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"

Usage:

  • 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>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published