]> matita.cs.unibo.it Git - helm.git/blob - helm/software/lambda-delta/lib/log.mli
we removed some old code and fixed a reduction bug: two instances fo the
[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                    | Context of 'a
14                    | Warn of string
15                    | String of string
16                    | Loc
17
18 type ('a, 'b) specs = {
19    pp_term   : 'a -> Format.formatter -> 'b -> unit;
20    pp_context: Format.formatter -> 'a -> unit
21 }
22
23 val loc: int ref
24
25 val level: int ref
26
27 val warn: string -> unit
28
29 val box: int -> unit
30
31 val unbox: int -> unit
32
33 val flush: int -> unit
34
35 val box_err: unit -> unit
36
37 val flush_err: unit -> unit
38
39 val log: ('a, 'b) specs -> int -> ('a, 'b) item list -> unit
40
41 val error: ('a, 'b) specs -> ('a, 'b) item list -> unit
42
43 val items1: string -> ('a, 'b) item list
44
45 val t_items1: string -> 'a -> 'b -> ('a, 'b) item list
46
47 val ct_items1:
48    string -> 'a -> string -> 'b -> ('a, 'b) item list
49
50 val ct_items2:
51    string -> 'a -> string -> 'b -> string -> 'b -> ('a, 'b) item list
52
53 val ct_items3:
54    string -> 'a -> string -> 'b -> string -> 'b -> string -> 'b -> 
55    ('a, 'b) item list