X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fbinaries%2Fmatex%2Foptions.ml;h=81cf705bae64e91486872c228e05647a8aea5e8f;hb=e06774421eb3b8f4438a6876cc1ab4262ef16f6e;hp=ba1f39849e0138b2c9ca6f0880a9facfd520d814;hpb=5791ee6b64136ecb0a727e32997b33f4bfab2c31;p=helm.git diff --git a/matita/components/binaries/matex/options.ml b/matita/components/binaries/matex/options.ml index ba1f39849..81cf705ba 100644 --- a/matita/components/binaries/matex/options.ml +++ b/matita/components/binaries/matex/options.ml @@ -26,23 +26,52 @@ let default_test = false let default_no_types = false +let default_global_alpha = false + +let default_log_alpha = false + +let default_log_missing = false + let default_list_och = None +let default_alpha = [] + +let default_macro = [] + (* interface ****************************************************************) +let dno_id = "_" (* identifier for not-occurring premises *) + +let nan = -1 (* not a number *) + let status = new P.status let no_init = ref default_no_init -let out_dir = ref default_out_dir (* directory of generated files *) +let out_dir = ref default_out_dir (* directory of generated files *) + +let proc_id = ref default_proc_id (* identifer for anticipations *) + +let test = ref default_test (* test anticipation *) + +let no_types = ref default_no_types (* omit types *) + +let global_alpha = ref default_global_alpha (* log alpha-unconverted identifiers *) + +let log_alpha = ref default_log_alpha (* log alpha-unconverted identifiers *) + +let log_missing = ref default_log_missing (* log missing notational macros *) + +let list_och = ref default_list_och (* output stream for list file *) -let proc_id = ref default_proc_id (* identifer of anticipations *) +let alpha_type = ref default_alpha (* data for type-based alpha-conversion *) -let test = ref default_test (* test anticipation *) +let alpha_sort = ref default_alpha (* data for sort-based alpha-conversion *) -let no_types = ref default_no_types (* omit types *) +let macro_gref = ref default_macro (* data eta-conversion and constant rendering *) -let list_och = ref default_list_och (* output stream for list file *) +let is_global_id s = + !global_alpha && s <> dno_id let close_list () = match !list_och with | None -> () @@ -55,4 +84,10 @@ let clear () = proc_id := default_proc_id; test := default_test; no_types := default_no_types; - list_och := default_list_och + global_alpha := default_global_alpha; + log_alpha := default_log_alpha; + log_missing := default_log_missing; + list_och := default_list_och; + alpha_type := default_alpha; + alpha_sort := default_alpha; + macro_gref := default_macro