- use provided Vagrantfile to create a desired environment
- build compiler
make bin/c_compiler
- build and run Catch2 unit testing
make test
ormake bin/test && bin/test [accepts catch2 options]
- run test cases and output csv
./test ref|our
- run test cases and output in a table format
.\test_column ref|our
- option
ref
uses the reference gcc compiler - optin
our
uses our compiler
usage:
c_compiler <input> options
where options are:
-?, -h, --help display usage information
-c, -S, --compile compile from C98 to MIPS
-t, --translate translate from C89 to Python
-o <output> place the output into <file>
[MSG] Important messages, even for the user.
[CON] Messages from the the context manager, mostly internal.
[LOG] Internal logs.
[ERR] Error messages.
- Unit testing Catch2
- Command line options parsing Clara
- Console coloring rang
- String formatting {fmt}
This is a C89 to MIPS / Python compiler which. It was written as the coursework to the second year EIE module Language Processors at the department of EEE Imperial College London