-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
25 lines (22 loc) · 1.05 KB
/
makefile
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
all: compile run clean
compile:
jflex minijava.flex
java -jar java-cup-11b.jar -interface -parser Parser minijava.cup
javac -cp java-cup-11b-runtime.jar:. *.java
run:
# java -cp java-cup-11b-runtime.jar:. Parser tests/sample.1.pl
# java -cp java-cup-11b-runtime.jar:. Parser tests/sample.2.pl
# java -cp java-cup-11b-runtime.jar:. Parser tests/sample.3.pl
# java -cp java-cup-11b-runtime.jar:. Parser tests/sample.4.pl
# java -cp java-cup-11b-runtime.jar:. Parser tests/sample.5.pl
# java -cp java-cup-11b-runtime.jar:. Parser tests/typecheck.1.txt
# java -cp java-cup-11b-runtime.jar:. Parser tests/codegen.1.txt
# java -cp java-cup-11b-runtime.jar:. Parser tests/codegen.2.txt
java -cp java-cup-11b-runtime.jar:. Parser tests/codegen.3.txt
# java -cp java-cup-11b-runtime.jar:. Parser tests/test_ops.j
# java -cp java-cup-11b-runtime.jar:. Parser tests/test_functions.j
# java -cp java-cup-11b-runtime.jar:. Parser tests/test_fields.j
# java -cp java-cup-11b-runtime.jar:. Parser tests/test_booleans.j
clean:
rm Lexer.java Parser.java sym.java
rm *.class