X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=inline;f=helm%2Fsoftware%2Flambda-delta%2Fsrc%2Flib%2Flog.mli;fp=helm%2Fsoftware%2Flambda-delta%2Fsrc%2Flib%2Flog.mli;h=9e0f054e18213d06cb9f7ed57d9517cfc1c07eaa;hb=ab13cfa248f0ee58d239ceeddfb50ec49a6b5c6d;hp=0000000000000000000000000000000000000000;hpb=514017fb6545009bdc62dcaf294f4317beb251b2;p=helm.git diff --git a/helm/software/lambda-delta/src/lib/log.mli b/helm/software/lambda-delta/src/lib/log.mli new file mode 100644 index 000000000..9e0f054e1 --- /dev/null +++ b/helm/software/lambda-delta/src/lib/log.mli @@ -0,0 +1,63 @@ +(* + ||M|| This file is part of HELM, an Hypertextual, Electronic + ||A|| Library of Mathematics, developed at the Computer Science + ||T|| Department, University of Bologna, Italy. + ||I|| + ||T|| HELM is free software; you can redistribute it and/or + ||A|| modify it under the terms of the GNU General Public License + \ / version 2 or (at your option) any later version. + \ / This software is distributed as is, NO WARRANTY. + V_______________________________________________________________ *) + +type ('a, 'b) item = Term of 'a * 'b + | 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_lenv: Format.formatter -> 'a -> unit +} + +val loc: string ref + +val level: int ref + +val clear: unit -> unit + +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) message -> unit + +val error: ('a, 'b) specs -> ('a, 'b) message -> unit + +val items1: string -> ('a, 'b) message + +val t_items1: string -> 'a -> 'b -> ('a, 'b) message + +val et_items1: + string -> 'a -> string -> 'b -> ('a, 'b) message + +val et_items2: + string -> 'a -> string -> 'b -> + ?sc2:string -> ?c2:'a -> string -> 'b -> + ('a, 'b) message + +val et_items3: + string -> 'a -> string -> 'b -> + ?sc2:string -> ?c2:'a -> string -> 'b -> + ?sc3:string -> ?c3:'a -> string -> 'b -> + ('a, 'b) message