Compiler built with Java which compiles a program in a fictional language called Toy2 into C language.
Produced for the Compilers course of Computer Science at University of Salerno.
- Language specifications are written inside Specifiche Toy2.pdf file.
- Built with Java 17
- Download the project
- Move your .toy2 file into the source_files folder
- Change the toy2Path variable inside the toy2_toC.bat file to the name of your program .toy2
- Save the modified toy2_toC.bat file
- Run the toy2_toC.bat file
- The compiled C program will be generated in the jar_file/source_files/generated_c/ folder with the name out_c.c