Skip to content

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

Notifications You must be signed in to change notification settings

twilkhoo/wlp4-compiler

Repository files navigation

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 [email protected].

Demo:

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published