]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_notation/grafiteAst.ml
New module HMysql (to abstract over Mysql and make profiling easier).
[helm.git] / helm / ocaml / cic_notation / grafiteAst.ml
index f7e953b8cb87f71863555982db2dfcd28b1b268d..45f7c1aea7882afbb31bf08374cc27d45dd5f1b1 100644 (file)
@@ -134,6 +134,7 @@ type obj =
        *)
   | Record of (string * Ast.term) list * string * Ast.term *
       (string * Ast.term) list
+      (** left parameters, name, type, fields *)
 
 type ('term,'obj) command =
   | Default of loc * string * UriManager.uri list
@@ -161,6 +162,17 @@ type ('term,'obj) command =
     (* DEBUGGING *)
   | Render of loc * UriManager.uri (* render library object *)
 
+let reash_uris =
+  function
+  | Default (loc, name, uris) ->
+      let uris =
+        List.map
+          (fun uri -> UriManager.uri_of_string (UriManager.string_of_uri uri))
+          uris
+      in
+      Default (loc, name, uris)
+  | cmd -> cmd
+
 type ('term, 'lazy_term, 'reduction, 'ident) tactical =
   | Tactic of loc * ('term, 'lazy_term, 'reduction, 'ident) tactic
   | Do of loc * int * ('term, 'lazy_term, 'reduction, 'ident) tactical
@@ -189,3 +201,9 @@ type ('term, 'lazy_term, 'reduction, 'obj, 'ident) statement =
   | Executable of loc * ('term, 'lazy_term, 'reduction, 'obj, 'ident) code
   | Comment of loc * ('term, 'lazy_term, 'reduction, 'obj, 'ident) comment
 
+  (* statements meaningful for matitadep *)
+type dependency =
+  | IncludeDep of string
+  | BaseuriDep of string
+  | UriDep of UriManager.uri
+