Skip to content

v1.3.0

Choose a tag to compare

@BlackyDrum BlackyDrum released this 07 Dec 22:36
· 15 commits to main since this release

MiniJava Compiler

v1.3.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 static void main as entrypoint

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