Skip to content

v1.2.0

Choose a tag to compare

@BlackyDrum BlackyDrum released this 06 Dec 19:59
· 16 commits to main since this release

MiniJava Compiler

v1.2.0

This is a simple compiler for MiniJava, a minimalistic Java-like programming language. The compiler is implemented in JavaCC and was built as part of the "Compilerbau" course at FH Aachen. It can be used to compile MiniJava source code into Java bytecode.

Changes

  • Add Single and Multi Line comments

Run the following command to compile a MiniJava source file:

$ java -jar MiniJava.jar < mySourceFile.txt

The compiler will generate a Java class file named MiniJavaClassFile.class. Run the compiled class file with the following command:

$ java MiniJavaClassFile