Skip to content

wejeus/cortado

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Compiler for Java written in Java!

@authors: Samuel Wejéus, Emil Arfvidsson

-- 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
```

About

komp12 project - create a compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 96.6%
  • Shell 1.5%
  • Lex 1.2%
  • Other 0.7%