intermed. test/../integrate.sml in -- me method [diff,integration] --
removed last error by
find . -type f -exec sed -i s/"\"Isac.thy\""/"\"Isac\""/g {} \;
find . -type f -exec sed -i s/" Isac.thy"/" (theory \"Isac\")"/g {} \;
1 (* tests for sml/xmlsrc/pbl-met-hierarchy.sml
2 author: Walther Neuper 060209
5 use"../smltest/xmlsrc/pbl-met-hierarchy.sml";
6 use"pbl-met-hierarchy.sml";
8 CAUTION with testing *2file functions -- they are actually writing !!!
11 val thy = (theory "Isac");
13 "-----------------------------------------------------------------";
14 "table of contents -----------------------------------------------";
15 "-----------------------------------------------------------------";
16 "----------- pbl2xml ---------------------------------------------";
17 "-----------------------------------------------------------------";
18 "-----------------------------------------------------------------";
19 "-----------------------------------------------------------------";
23 "----------- pbl2xml ---------------------------------------------";
24 "----------- pbl2xml ---------------------------------------------";
25 "----------- pbl2xml ---------------------------------------------";
26 (*what to do if from 'pbls2file "../../xmldata/pbl/";' you get the error
28 ### pbl2file: id = ["Biegelinie"]
29 *** Type unification failed: Clash of types "fun" and "Script.ID".
30 *** Type error in application: Incompatible operand type.
32 *** Operator: Problem :: ID * ID list => ??'a
33 *** Operand: (Biegelinie, [Biegelinie]) ::
34 *** ((real => real) => una) * ((real => real) => una) list
36 Exception- OPTION raised
38 pbl2xml ["Biegelinien"] (get_pbt ["Biegelinien"]);
39 (* val id = ["Biegelinie"];
40 val {(*guh,*)cas,met,ppc,prls,thy,where_} = get_pbt ["Biegelinie"];
41 AND STEP THROUGH pbl2xml ...
43 term2xml i (pbl2term thy id);
46 (* val (thy, pblRD) = (thy, id);
47 AND STEP THROUGH pbl2term...
49 val str = ("Problem (" ^
50 (get_thy o theory2domID) thy ^ ", " ^
51 (strs2str' o rev) pblRD ^ ")");
53 str2term "Biegelinie";
54 str2term "Biegelinien";
57 ("Biegelinie.Biegelinie",
58 "(RealDef.real => RealDef.real) => Tools.una") : Term.term
59 ..I.E. THE "Script.ID" _WAS_ ALREADY OCCUPIED BY A 'description'*)
62 val path = "/home/neuper/proto2/isac/xmldata/";
63 val path = "/home/neuper/tmp/";
65 pbl_hierarchy2file (path ^ "pbl/");
66 pbls2file (path ^ "pbl/");
68 met_hierarchy2file (path ^ "met/");
69 mets2file (path ^ "met/");
71 thy_hierarchy2file (path ^ "thy/");
72 thes2file (path ^ "thy/");