A MiniJava compiler for the komp14 course at KTH.
Java Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
script
src
test
.gitignore
DESC
LICENSE
README.md
build.xml
report.pdf

README.md

komp14 MiniJava Compiler

This is a MiniJava compiler which generates Jasmin assembly code, created by Hampus Liljekvist and Christian Lidström at the Royal Institue of Technology (KTH) for the DD2488 Compiler Construction course.

The valid grammar specification can be found at the course page.

The following extensions are implemented:

  • ISC
  • ICG
  • JVM
  • LONG
  • IWE
  • NBD
  • ABC
  • CLE, CGT, CGE
  • CEQ, CNE
  • BDJ

Usage

Run the generated mjc.jar file with no arguments to read from stdin, otherwise specify a single input file.

To enable code generation, the second argument must be -S.

Consult report.pdf for the full documentation of the compiler and project.