Skip to content

A compiler for C-minus language as a project at Sharif University of Technology in the Fall semester of 2022-2023 coded by Parham Bateni

Notifications You must be signed in to change notification settings

ParhamBateni/Compiler-Project-Fall-2022-2023

Repository files navigation

Compiler-Project-Fall-2022-2023

A compiler for C-minus language as a project at Sharif University of Technology in the Fall semester of 2022-2023 coded by Parham Bateni and Pooya EsmaeilAkhoondi

Phase1: writing the code of the scanner

Scanner DFA: Scanner DFA

Phase2: writing the code of LR(1) parser

Grammar: image

Phase3: writing the code of Intermediate code generator

In this phase, we changed the previous phase's grammar and added the required action symbols so the intermediate code generator could generate three address codes. The final output of the three address codes was tested using an available interpreter. The three address codes are as following: image

About

A compiler for C-minus language as a project at Sharif University of Technology in the Fall semester of 2022-2023 coded by Parham Bateni

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published