]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/lib/log.mli
- new semantic log system
[helm.git] / helm / software / lambda-delta / lib / log.mli
index e32f6e0fd7dbbfd4b8ad3ec43ccc68bdbcab5125..184594077ce8c4db34f68a5719df4bc96b34e409 100644 (file)
@@ -9,4 +9,26 @@
      \ /   This software is distributed as is, NO WARRANTY.              
       V_______________________________________________________________ *)
 
+type ('a, 'b) item = Term of 'a * 'b
+                   | Context of 'a
+                   | Warn of string
+                  | String of string
+
+type ('a, 'b) specs = {
+   pp_term   : Format.formatter -> 'a -> 'b -> unit;
+   pp_context: Format.formatter -> 'a -> unit
+}
+
+val level: int ref
+
 val warn: string -> unit
+
+val log: ('a, 'b) specs -> int -> ('a, 'b) item list -> unit
+
+val error: ('a, 'b) specs -> ('a, 'b) item list -> unit
+
+val items1: string -> ('a, 'b) item list
+
+val ct_items1: string -> 'a -> 'b -> ('a, 'b) item list
+
+val ct_items2: string -> 'a -> 'b -> string -> 'a -> 'b -> ('a, 'b) item list