Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 744 Bytes

File metadata and controls

36 lines (30 loc) · 744 Bytes

Implementation of a compiler

Compiler Design Fundamentals

Final Project - Shahid Beheshti University(2023)

This project focuses on designing and implementing a simple compiler using llvm. To build the project, execute:

$ ./build.sh

To compile your code, replace it with the code in input.txt and execute:

$ ./run.sh

This compiler displays the value assigned in each assignment as The result is: .

Sample

Input:

int i = 0;
loopc i < 5: begin
i += 1;
end

Output:

The result is: 1
The result is: 2
The result is: 3
The result is: 4
The result is: 5