Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 872 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 872 Bytes

wlp4-compiler

A WLP4 (subset of C) compiler written in C++ that compiles to MIPS assembly.

WLP4 is a language developed by the CS241 staff at uWaterloo, standing for "Waterloo Language Plus Pointers Plus Procedures". Here is a tutorial and here is the formal language specification. This compiler implements a scanner (simplified maximal munch scanning algorithm), parser (SLR(1) algorithm), type checker and code generator.

Since this was a compiler written for a course, I can provide it privately if contacted at twilkhoo@uwaterloo.ca.

Demo:

cs241  SSH_ linux student cs uwaterloo ca  - Visual Studio Code 2023-07-22 19-39-05 (1)