This is the final Project for the Complier Design class made in 2020. The project is a language called Michelle similar to C/C++.
- Arithmetic Operations
- Assignment Statements
- Conditional and Looping Control Statements
- Print Statements / Variables
- Function Calls (pass by value)
- Function Declarations
- Function Returns
- Create a new C++ project in Eclipse
- Set up configurations to generate jasmin files (.j)
- Set C++ dialect to C++ 11, the library should include antlr4-runtime in the C++ linker
- Create the grammar file using antlr 4.8
- Compile the program in Eclipse
- In run configurations, provide a name
- Add your sample code filename in the arguments under program arguments
- Build and run the project in order to generate the jasmin code
- Go to the terminal, and change the directory to the jasmin folder
- Build the class file
java -jar jasmin.jar[YourJasminFileName + .j]
- Execute the class file
java -cp .:PascalRTL.jar [YourJasminFileName]
Project was created for the Compiler Design course at San José State University.
Course is headed by Ronald Mak.
Project created by Michelle Roque, Jason Chong, Joshua Gadia, and Jonathan Naraja.