Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 840 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 840 Bytes

rust-cmmc

A compiler written in Rust for the C-- programming language, invented by Drew Davidson at KU for EECS 665 Compiler Construction.

Usage

This project requires the Rust toolchain to build. Follow the instructions on https://www.rust-lang.org/ to install.

Running make will place a cmmc executable in the project root which conforms to the project specs. However, I've also made convenience scripts which add cmmc in your $PATH and add an option, -e, to compile a .cmm file directly to an executable.

Here's how to use them:

$ make # (if you haven't already)
$ source env/setup.sh
$ cmmc -e /path/to/program.cmm -e /path/to/executable

The -e option is only available through the script env/bin/cmmc. This script is added to your $PATH when you run source env/setup.sh.

Compiler Constructed 🐉 ⚔️