-
Notifications
You must be signed in to change notification settings - Fork 0
/
testBuild.oz
49 lines (48 loc) · 921 Bytes
/
testBuild.oz
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
declare
{Inspector.configure widgetShowStrings true}
[Helpers] = {Module.link ['Helpers.ozf']}
fun {CompileDefFile DefFileS DefFunctorS ConstraintS}
Ss
in
try
PidI
WriteSocketI
in
{OS.pipe "PrincipleWriter/pw"
["-p" DefFileS
"-e" DefFunctorS
"-c" ConstraintS] PidI _#WriteSocketI}
Ss = {Helpers.readFromSocket WriteSocketI}
catch E then
{Inspect E}
end
Ss
end
Ss =
{CompileDefFile
"Solver/Principles/Source/orderPW.ul"
"Solver/Principles/OrderPW.oz"
"Solver/Principles/Lib/OrderPW.oz"}
for S in Ss do
{Inspect S}
end
declare
fun {CompileOz FileS}
Ss
in
try
WriteSocketI
in
{OS.pipe "ozc"
["-c" FileS#2 "-o" FileS#"f"] _ _#WriteSocketI}
Ss = {Helpers.readFromSocket WriteSocketI}
catch E then
{Inspect E}
end
Ss
end
Ss1 =
{CompileOz "Solver/Principles/Principles.oz"}
for S in Ss1 do
{Inspect {S2A S}}
end