]> matita.cs.unibo.it Git - helm.git/blob - helm/software/lambda-delta/src/lib/log.mli
9e0f054e18213d06cb9f7ed57d9517cfc1c07eaa
[helm.git] / helm / software / lambda-delta / src / lib / log.mli
1 (*
2     ||M||  This file is part of HELM, an Hypertextual, Electronic        
3     ||A||  Library of Mathematics, developed at the Computer Science     
4     ||T||  Department, University of Bologna, Italy.                     
5     ||I||                                                                
6     ||T||  HELM is free software; you can redistribute it and/or         
7     ||A||  modify it under the terms of the GNU General Public License   
8     \   /  version 2 or (at your option) any later version.              
9      \ /   This software is distributed as is, NO WARRANTY.              
10       V_______________________________________________________________ *)
11
12 type ('a, 'b) item = Term of 'a * 'b
13                    | LEnv of 'a
14                    | Warn of string
15                    | String of string
16                    | Loc
17
18 type ('a, 'b) message = ('a, 'b) item list
19
20 type ('a, 'b) specs = {
21    pp_term: 'a -> Format.formatter -> 'b -> unit;
22    pp_lenv: Format.formatter -> 'a -> unit
23 }
24
25 val loc: string ref
26
27 val level: int ref
28
29 val clear: unit -> unit
30
31 val warn: string -> unit
32
33 val box: int -> unit
34
35 val unbox: int -> unit
36
37 val flush: int -> unit
38
39 val box_err: unit -> unit
40
41 val flush_err: unit -> unit
42
43 val log: ('a, 'b) specs -> int -> ('a, 'b) message -> unit
44
45 val error: ('a, 'b) specs -> ('a, 'b) message -> unit
46
47 val items1: string -> ('a, 'b) message
48
49 val t_items1: string -> 'a -> 'b -> ('a, 'b) message
50
51 val et_items1:
52    string -> 'a -> string -> 'b -> ('a, 'b) message
53
54 val et_items2:
55    string -> 'a -> string -> 'b -> 
56    ?sc2:string -> ?c2:'a -> string -> 'b -> 
57    ('a, 'b) message
58
59 val et_items3:
60    string -> 'a -> string -> 'b -> 
61    ?sc2:string -> ?c2:'a -> string -> 'b -> 
62    ?sc3:string -> ?c3:'a -> string -> 'b ->
63    ('a, 'b) message