Skip to content

AtoraSuunva/rust-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-compiler

A compiler written in Rust to compile a made-up language. Basically my definition of a fun night.

Running

You'll need Rust and Cargo

Each step of the compiler is it's own binary under ./src/bin (which each step building upon the previous step).

You can run each step individually with cargo run --bin <bin name> -- <files>, ie. cargo run --bin lexdriver -- ./test

A set of test files are included under ./test to try things out.