-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
66 lines (49 loc) · 1.91 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#Build the language by compiling all the java files
default:
mkdir out/production/rune; find . -name \*.java | xargs javac -d out/production/rune
#Remove all class files
clean:
rm -r out/production/rune
#Make commands for the error examples
cat-error1:
cat examples/error1.txt | expand -t4; echo \\n
run-error1:
cd out/production/rune; java compiler.Interpreter ../../../examples/error1.txt;
cat-error2:
cat examples/error2.txt | expand -t4; echo \\n
run-error2:
cd out/production/rune; java compiler.Interpreter ../../../examples/error2.txt;
cat-error3:
cat examples/error3.txt | expand -t4; echo \\n
run-error3:
cd out/production/rune; java compiler.Interpreter ../../../examples/error3.txt;
#Make commands for demonstration of language
cat-arrays:
cat examples/arrays.txt | expand -t4; echo \\n
run-arrays:
cd out/production/rune; java compiler.Interpreter ../../../examples/arrays.txt;
cat-conditionals:
cat examples/conditionals.txt | expand -t4; echo \\n
run-conditionals:
cd out/production/rune; java compiler.Interpreter ../../../examples/conditionals.txt;
cat-recursion:
cat examples/recursion.txt | expand -t4; echo \\n
run-recursion:
cd out/production/rune; java compiler.Interpreter ../../../examples/recursion.txt;
cat-iteration:
cat examples/iteration.txt | expand -t4; echo \\n
run-iteration:
cd out/production/rune; java compiler.Interpreter ../../../examples/iteration.txt;
cat-functions:
cat examples/functions.txt | expand -t4; echo \\n
run-functions:
cd out/production/rune; java compiler.Interpreter ../../../examples/functions.txt;
cat-dictionary:
cat examples/dictionary.txt | expand -t4; echo \\n
run-dictionary:
cd out/production/rune; java compiler.Interpreter ../../../examples/dictionary.txt;
#Make commands for the circuit problem
cat-problem:
cat examples/problem.txt | expand -t4; echo \\n
run-problem:
cd out/production/rune; java compiler.Interpreter ../../../examples/problem.txt;