X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Flib%2Flog.mli;h=241247c188d69ff345ef1bd194299c707933aa6f;hb=7477c3dbbc2fafe248d48302be0d6ba4cb38d062;hp=e32f6e0fd7dbbfd4b8ad3ec43ccc68bdbcab5125;hpb=c45c77de154323feaf5bf6aee98c86b95361b9ae;p=helm.git diff --git a/helm/software/lambda-delta/lib/log.mli b/helm/software/lambda-delta/lib/log.mli index e32f6e0fd..241247c18 100644 --- a/helm/software/lambda-delta/lib/log.mli +++ b/helm/software/lambda-delta/lib/log.mli @@ -9,4 +9,47 @@ \ / 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 + | Loc + +type ('a, 'b) specs = { + pp_term : 'a -> Format.formatter -> 'b -> unit; + pp_context: Format.formatter -> 'a -> unit +} + +val loc: int ref + +val level: int ref + val warn: string -> unit + +val box: int -> unit + +val unbox: int -> unit + +val flush: int -> unit + +val box_err: unit -> unit + +val flush_err: unit -> 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 t_items1: string -> 'a -> 'b -> ('a, 'b) item list + +val ct_items1: + string -> 'a -> string -> 'b -> ('a, 'b) item list + +val ct_items2: + string -> 'a -> string -> 'b -> string -> 'b -> ('a, 'b) item list + +val ct_items3: + string -> 'a -> string -> 'b -> string -> 'b -> string -> 'b -> + ('a, 'b) item list