Skip to content
A MiniJava compiler for the komp14 course at KTH.
Java Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
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.

You can’t perform that action at this time.