nikololiahim / Compiler-Construction-Project-I

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About


Languages

Language:Java 82.3%Language:Yacc 9.8%Language:C 7.8%Language:Dockerfile 0.1%Language:Shell 0.0%