]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/metadata/metadataPp.ml
bumped changelog line to match upload date
[helm.git] / helm / ocaml / metadata / metadataPp.ml
index 2ce9f22267d05548d00160e203de347eb65de3ea..33f10427ffa41e59f0c8d4a9e83eaeffaf8a5698 100644 (file)
@@ -25,6 +25,8 @@
 
 open Printf
 
+open MetadataTypes
+
 let pp_position = function
   | `MainConclusion (Some d) -> sprintf "MainConclusion(%d)" d
   | `MainConclusion None -> sprintf "MainConclusion"
@@ -35,20 +37,20 @@ let pp_position = function
   | `InBody -> "InBody"
 
 let pp_position_tag = function
-  | `MainConclusion _ -> "MainConclusion"
-  | `MainHypothesis _ -> "MainHypothesis"
-  | `InConclusion -> "InConclusion"
-  | `InHypothesis -> "InHypothesis"
-  | `InBody -> "InBody"
+  | `MainConclusion _ -> mainconcl_pos
+  | `MainHypothesis _ -> mainhyp_pos
+  | `InConclusion -> inconcl_pos
+  | `InHypothesis -> inhyp_pos
+  | `InBody -> inbody_pos
 
 let columns_of_position = function
-  | `MainConclusion (Some d) -> `String "MainConclusion", `Int d
-  | `MainConclusion None -> `String "MainConclusion", `Null
-  | `MainHypothesis (Some d) -> `String "MainHypothesis", `Int d
-  | `MainHypothesis None -> `String "MainHypothesis", `Null
-  | `InConclusion -> `String "InConclusion", `Null
-  | `InHypothesis -> `String "InHypothesis", `Null
-  | `InBody -> `String "InBody", `Null
+  | `MainConclusion (Some d) -> `String mainconcl_pos, `Int d
+  | `MainConclusion None -> `String mainconcl_pos, `Null
+  | `MainHypothesis (Some d) -> `String mainhyp_pos, `Int d
+  | `MainHypothesis None -> `String mainhyp_pos, `Null
+  | `InConclusion -> `String inconcl_pos, `Null
+  | `InHypothesis -> `String inhyp_pos, `Null
+  | `InBody -> `String inbody_pos, `Null
 
 (*
 let metadata_ns = "http://www.cs.unibo.it/helm/schemas/schema-helm"
@@ -89,9 +91,11 @@ let columns_of_ind_metadata ind_metadata =
       (List.append sort_cols s, List.append rel_cols r, List.append obj_cols o))
     ([], [], []) ind_metadata
 
+(*
 let pp_columns ?(sep = "\n") (sort_cols, rel_cols, obj_cols) =
   String.concat sep
     ([ "Sort" ] @ List.map Dbi.sdebug (sort_cols :> Dbi.sql_t list list) @
     [ "Rel" ] @ List.map Dbi.sdebug (rel_cols :> Dbi.sql_t list list) @
     [ "Obj" ] @ List.map Dbi.sdebug (obj_cols :> Dbi.sql_t list list))
+*)