X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Flib%2Flog.mli;h=9e0f054e18213d06cb9f7ed57d9517cfc1c07eaa;hb=e62111335574a6ec78e5a4367a540e0529a00404;hp=6a2cc90cddab3249bdf1d61469c88d79db32f043;hpb=94c6cfe7e6b833190904c6b546668d716978a812;p=helm.git diff --git a/helm/software/lambda-delta/lib/log.mli b/helm/software/lambda-delta/lib/log.mli index 6a2cc90cd..9e0f054e1 100644 --- a/helm/software/lambda-delta/lib/log.mli +++ b/helm/software/lambda-delta/lib/log.mli @@ -10,20 +10,24 @@ V_______________________________________________________________ *) type ('a, 'b) item = Term of 'a * 'b - | Context of 'a + | LEnv of 'a | Warn of string | String of string | Loc +type ('a, 'b) message = ('a, 'b) item list + type ('a, 'b) specs = { - pp_term : 'a -> Format.formatter -> 'b -> unit; - pp_context: Format.formatter -> 'a -> unit + pp_term: 'a -> Format.formatter -> 'b -> unit; + pp_lenv: Format.formatter -> 'a -> unit } -val loc: int ref +val loc: string ref val level: int ref +val clear: unit -> unit + val warn: string -> unit val box: int -> unit @@ -36,21 +40,24 @@ val box_err: unit -> unit val flush_err: unit -> unit -val log: ('a, 'b) specs -> int -> ('a, 'b) item list -> unit +val log: ('a, 'b) specs -> int -> ('a, 'b) message -> unit -val error: ('a, 'b) specs -> ('a, 'b) item list -> unit +val error: ('a, 'b) specs -> ('a, 'b) message -> unit -val items1: string -> ('a, 'b) item list +val items1: string -> ('a, 'b) message -val t_items1: string -> 'a -> 'b -> ('a, 'b) item list +val t_items1: string -> 'a -> 'b -> ('a, 'b) message -val ct_items1: - string -> 'a -> string -> 'b -> ('a, 'b) item list +val et_items1: + string -> 'a -> string -> 'b -> ('a, 'b) message -val ct_items2: - string -> 'a -> string -> 'b -> string -> 'a -> string -> 'b -> - ('a, 'b) item list +val et_items2: + string -> 'a -> string -> 'b -> + ?sc2:string -> ?c2:'a -> string -> 'b -> + ('a, 'b) message -val ct_items3: - string -> 'a -> string -> 'b -> string -> 'b -> string -> 'b -> - ('a, 'b) item list +val et_items3: + string -> 'a -> string -> 'b -> + ?sc2:string -> ?c2:'a -> string -> 'b -> + ?sc3:string -> ?c3:'a -> string -> 'b -> + ('a, 'b) message