WACC Language Compiler

wacc-fib

  • Worked in a group of four to design a compiler (written in Scala) of WACC, a While-like programming language. Our compiler generates ARM11 assembly code from WACC programs - an example WACC function is shown above.
  • Integrated Parsley, a third-party combinator library, into our parser and lexer.
  • Implemented an IDE for the language (written in Python), peephole optimisations, and support for pointer types as project extensions that received a 92% grade.
  • Associated with Imperial College London, repository available on request.