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.
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_______________________________________________________________ *)
14 module R = Helm_registry
17 (* internal *****************************************************************)
19 let default_no_init = true
21 let default_out_dir = F.current_dir_name
23 let default_proc_id = "H"
25 let default_test = false
27 let default_no_types = false
29 let default_log_alpha = false
31 let default_list_och = None
33 let default_alpha = []
35 (* interface ****************************************************************)
37 let status = new P.status
39 let no_init = ref default_no_init
41 let out_dir = ref default_out_dir (* directory of generated files *)
43 let proc_id = ref default_proc_id (* identifer of anticipations *)
45 let test = ref default_test (* test anticipation *)
47 let no_types = ref default_no_types (* omit types *)
49 let log_alpha = ref default_log_alpha (* log alpha-unconverted identifiers *)
51 let list_och = ref default_list_och (* output stream for list file *)
53 let alpha_type = ref default_alpha (* data of type-based alpha-conversion *)
55 let alpha_sort = ref default_alpha (* data of sort-based alpha-conversion *)
57 let close_list () = match !list_och with
59 | Some och -> close_out och
62 R.clear (); close_list ();
63 no_init := default_no_init;
64 out_dir := default_out_dir;
65 proc_id := default_proc_id;
67 no_types := default_no_types;
68 log_alpha := default_log_alpha;
69 list_och := default_list_och;
70 alpha_type := default_alpha;
71 alpha_sort := default_alpha