Skip to content

kanelbulle/cortado

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

                     __              .___      
  ____  ____________/  |______     __| _/____  
_/ ___\/  _ \_  __ \   __\__  \   / __ |/  _ \ 
\  \__(  <_> )  | \/|  |  / __ \_/ /_/ (  <_> )
 \___  >____/|__|   |__| (____  /\____ |\____/ 
     \/                       \/      \/       

This is a Minijava compiler written in java.

-- Minijava specification --
http://www.csc.kth.se/utbildning/kth/kurser/DD2488/komp11/project/newgrammar.pdf

-- Tools used --
* http://jflex.de
* http://www2.cs.tum.edu/projects/cup

-- Resources --
* http://www.cs.auckland.ac.nz/~bruce-h/lectures/330ChaptersPDF/

Building:

```
ant
```

Compiling a minijava file:

```
java -cp mjc.jar:lib/JFlex.jar:lib/java-cup-11a.jar mjc.JVMMain path/to/minijava/file -S
```

Generating .class files from the generated .j files:

```
java -jar lib/jasmin.jar *.j
```