CREATORS:
Philip Holler
Magnus Kirkegaard
Mads Faber
Mads Bau
Asger Bertel
Hannah Lockey
BEFORE GETTING STARTED
-
Install the IntelliJ ANTLR plugin called 'ANTLR v4 Grammar Plugin, v1.9'
-
Have Java 11 installed
BUILD AND RUN THE COMPILER
- Set the file to be compiled in the Compiler class.
- Use the Maven build 'Build and run compiler'
BUILD AND RUN GENERATED MODULE
- Use the Maven build 'Build and run Generated Module'
BUILD AND RUN TESTS
- Use the Maven build "Build and run tests" (this also builds the compiler)
TEST COVERAGE
- Use the Maven build "Build and run tests"
- Go to analyze -> Show Code Coverage Data -> + -> Select the /target/coverage-reports/jacoco-unit.exec
RUN JASMIN CODE / JAVA BYTE CODE VERSION
- Set the source fil in the compiler to ByteCodeTestProgram.pvt
- Compile using maven build 'Build and run compiler'. This gives the file PivotClass.J in the project root dir
- Download jasmin .Jar file with this link (https://sourceforge.net/projects/jasmin/)
- Use the Jasmin.jar file to translate from jasmin to ByteCode using the terminal and the following command ' java -jar jasmin.jar PivotClass.j'
- Run the ByteCode in the terminal with the following command 'java PivotClass'
HAVE FUN!