Skip to content

a simple C compiler based on sytax-directed translation(SDT)

Notifications You must be signed in to change notification settings

LongyuYang/SDT-C-compiler

Repository files navigation

SDT-C-compiler

Course project for Principles of Compilers at TJU. This is a simple C compiler based on syntax-directed translation(SDT) using top-down LL(1). The syntax analysis and the semantic analysis are executed simultaneously.

Requirements

  • Python 3.6
  • PyQt 5.11

Example

Click the Open File button to choose a source file, and then click the Execute SDT button to conduct the syntax-directed translation. The intermediate code will be saved to InterCode.txt. To generate MIPS code, click the Generate MIPS button and the MIPS code will be saved to MIPS.asm.

img1

img1

About

a simple C compiler based on sytax-directed translation(SDT)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published