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:
.
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