Skip to content

AliLRS/Compiler-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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