X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Flib%2Flog.mli;h=956f91fd8a00207e4475b713cd32ca787f3f20b2;hb=3698de5ee6abc713534b0ee884e87e4046a087dd;hp=184594077ce8c4db34f68a5719df4bc96b34e409;hpb=8659e85d49be1ad72622d4d3a73d384b744c3c08;p=helm.git diff --git a/helm/software/lambda-delta/lib/log.mli b/helm/software/lambda-delta/lib/log.mli index 184594077..956f91fd8 100644 --- a/helm/software/lambda-delta/lib/log.mli +++ b/helm/software/lambda-delta/lib/log.mli @@ -10,25 +10,52 @@ 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 : Format.formatter -> 'a -> 'b -> unit; - pp_context: Format.formatter -> 'a -> unit + pp_term: 'a -> Format.formatter -> 'b -> unit; + pp_lenv: Format.formatter -> 'a -> unit } +val loc: string ref + val level: int ref val warn: string -> unit -val log: ('a, 'b) specs -> int -> ('a, 'b) item list -> 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) message -> unit + +val error: ('a, 'b) specs -> ('a, 'b) message -> unit + +val items1: string -> ('a, 'b) message -val error: ('a, 'b) specs -> ('a, 'b) item list -> unit +val t_items1: string -> 'a -> 'b -> ('a, 'b) message -val items1: string -> ('a, 'b) item list +val et_items1: + string -> 'a -> string -> 'b -> ('a, 'b) message -val ct_items1: string -> 'a -> 'b -> ('a, 'b) item list +val et_items2: + string -> 'a -> string -> 'b -> + ?sc2:string -> ?c2:'a -> string -> 'b -> + ('a, 'b) message -val ct_items2: string -> 'a -> 'b -> string -> 'a -> '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