Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 595 Bytes

File metadata and controls

14 lines (11 loc) · 595 Bytes

compilerSysY

Course project of Compiler Principles, a sysY compiler.

Unoptimized version here

report in here

File Structure

  • sysy.l & sysy.y: Front end
  • *AST.cpp/hpp: AST definitions and operations
  • eeyoreOPT.cpp: Optimization for Eeyore
  • eeyoreREG.hpp: Register allocation
  • sysyLUT.cpp/hpp: Symbol table
  • sysyDATA.cpp/hpp: Handling with multi-dimensional arrays and initialization