This project is done as part of the compilation course of the National School of Computer Science (ENSI).
Follow the steps below to execute the code :
1- Clone or download the code
2- Open a terminal and navigate to the code directory
3- Run : make
4- This will generate two executables : g3c for the compiler and vm for the virtual machine
5- To test the compiler, on the same directory, run g3c example.txt. This should produce a file out.txt containing the bytecode.
6 -To test the virtual machine run vm out.txt.