-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
36 lines (26 loc) · 843 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
__ .___
____ ____________/ |______ __| _/____
_/ ___\/ _ \_ __ \ __\__ \ / __ |/ _ \
\ \__( <_> ) | \/| | / __ \_/ /_/ ( <_> )
\___ >____/|__| |__| (____ /\____ |\____/
\/ \/ \/
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
```