Skip to content

randomicecube/mml-comp

Repository files navigation

MML compiler

Project developed in collaboration with Diogo Cardoso for our Compilers class at Técnico Lisboa, 2022/2023 spring semester.


At the beginning of development, the repository contains source code for the Simple language in which all references to MML have been replaced by MML.

The steps to develop a full MML compiler imply the adaptation of:

  • the scanner (mml_scanner.l)
  • the parser (mml_parser.y)
  • the symbol (targets/symbol.h)
  • the type checker (targets/type_checker.cpp)
  • the XML writer (for the middle delivery: targets/xml_writer.cpp)
  • the Postfix writer (for the final delivery: targets/postfix_writer.cpp)

Note that not all the code has to be working for all deliveries. Check the evaluation conditions on the course pages.