This repositoy contains implementation of assignments from Compiler Sessional course (CSE 310), offered in Department of CSE at BUET.
The last assignment is the completion of the previous ones, which will generate assembly code for a C file.
- Install
flex
andbison
using
sudo apt install flex bison
- Install
gcc
using
sudo apt install gcc
- Clone the repo using git clone or download the zip file.
- Go to the directory of the assignment you want to run.
- Put the file you want to run
- Edit the file name in
script.sh
file - Run the following commad
./script.sh
- input file must be in the same directory of the assignment