/Compilers-project

Compiler for the subset of C programming language using C++/Flex/Bison, generating MIPS32 code.

Primary LanguageC++

Compilers

SUSTech CS323 Compilers course project.

SUSTech Programming Language(SPL)

SPL is a C-like programming language that removes most advanced features in C standard, such as macros or pointers. It is strongly typed, with several primitive types and structure type (as we borrowed from C), and sup-ports C-like control flow such as if-statement and while-statement. Also, it supports basic user interaction by providing two built-in function read and write, which makes it Turing-complete!

  1. project1 Lexical Analysis & Syntax Analysis
  2. project2 Semantic Analysis
  3. project3 IR Generation
  4. project4 Target Code Generation

Usage of each project can be found in project README.