]> matita.cs.unibo.it Git - helm.git/blob - helm/software/lambda-delta/lib/log.mli
Additional contribs.
[helm.git] / helm / software / lambda-delta / 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 warn: string -> unit
30
31 val box: int -> unit
32
33 val unbox: int -> unit
34
35 val flush: int -> unit
36
37 val box_err: unit -> unit
38
39 val flush_err: unit -> unit
40
41 val log: ('a, 'b) specs -> int -> ('a, 'b) message -> unit
42
43 val error: ('a, 'b) specs -> ('a, 'b) message -> unit
44
45 val items1: string -> ('a, 'b) message
46
47 val t_items1: string -> 'a -> 'b -> ('a, 'b) message
48
49 val et_items1:
50    string -> 'a -> string -> 'b -> ('a, 'b) message
51
52 val et_items2:
53    string -> 'a -> string -> 'b -> 
54    ?sc2:string -> ?c2:'a -> string -> 'b -> 
55    ('a, 'b) message
56
57 val et_items3:
58    string -> 'a -> string -> 'b -> 
59    ?sc2:string -> ?c2:'a -> string -> 'b -> 
60    ?sc3:string -> ?c3:'a -> string -> 'b ->
61    ('a, 'b) message