-
Notifications
You must be signed in to change notification settings - Fork 1
/
testPraticas
executable file
·101 lines (87 loc) · 1.71 KB
/
testPraticas
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/bin/bash
echo "Comprobando errores en de compilación en:"
cd p01
echo "Practica 1"
ocamlc -o nombre nombre.ml
ocamlc -c expr1.ml
ocamlc -c expr2.mli expr2.ml
rm nombre *.cmo *.cmi
cd ..
cd p02
echo "Practica 2"
ocamlc -o pi pi.ml
ocamlc -o e e.ml
ocamlc -o fact fact.ml
rm pi e fact *.cmo *.cmi
cd ..
cd p03
echo "Practica 3"
ocamlc -c ej31.mli ej31.ml
ocamlc -c condis.ml
ocamlc -c ej33.mli ej33.ml
ocamlc -o fib fib.ml
ocamlc -c prime.mli prime.ml
rm fib *.cmo *.cmi
cd ..
cd p04
echo "Practica 4"
ocamlc -c ej41.mli ej41.ml
ocamlc -c power.mli power.ml
ocamlc -c mcd.mli mcd.ml
rm *.cmo *.cmi
cd ..
cd p05
echo "Practica 5"
ocamlc -c collatz.mli collatz.ml
rm *.cmo *.cmi
cd ..
cd p06
echo "Practica 6"
ocamlc -c powmod.mli powmod.ml
ocamlc -c ej62.mli ej62.ml
rm *.cmo *.cmi
cd ..
cd p07
echo "Practica 7"
ocamlc -c mylist.mli mylist.ml
rm *.cmo *.cmi
cd ..
cd p08
echo "Practica 8"
ocamlc -c mylist2.mli mylist2.ml
ocamlc -c mylist3.mli mylist3.ml
rm *.cmo *.cmi
cd ..
cd p09
echo "Practica 9"
ocamlc -c ej91.mli ej91.ml
ocamlc -c qsort.mli qsort.ml
ocamlc -c msort.mli msort.ml
ocamlc -o fact fact.ml
rm fact *.cmo *.cmi
cd ..
cd p10
echo "Practica 10"
ocamlc -c tour.mli tour.ml
ocamlc -c shortest.mli shortest.ml
rm *.cmo *.cmi
cd ..
cd p11
echo "Practica 11"
ocamlc -c g_tree.mli g_tree.ml
ocamlc -c g_tree.cmo breadth_first.mli breadth_first.ml
ocamlc -c bin_tree.mli bin_tree.ml
ocamlc -c bin_tree.cmo tsort.mli tsort.ml
rm *.cmo *.cmi
cd ..
cd p12
echo "Practica 12"
make all
ocamlc -c context.mli context.ml
ocamlc -c lib.mli lib.ml
ocamlc -c arith.mli arith.ml
ocamlc -c command.mli command.ml
ocamlc -c main.ml
ocamlc -o calc context.cmo lib.cmo arith.cmo command.cmo parser.cmo lexer.cmo main.cmo
make clean
cd ..