Compiler-Construction-Project-I

By a team "Mikhail with girls": Natalia Matrosova, Mikhail Olokin, Alisa Martyanova and Alena Zavideeva

Code

All the code is located in the src folder. Ast classes are located in src/simple package. Bytecode is generated for each node of AST in emit function and combined in root node.

Running Code

In order to run the code, execute the main method from the Main class. Then run script.sh, which will save bytecode into sepatate bytecode.bc file (just for visualization purposes) and run program.

Example Programs

The 15 example programs are located in the tests folder.