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_______________________________________________________________ *)
16 type uri_generator = string -> string
18 type kernel = V4 | V3 | V0
26 (* interface functions ******************************************************)
28 let version_string = "Helena 0.8.2 M (June 2015)"
30 let stage = ref 3 (* stage *)
32 let trace = ref 0 (* trace level *)
34 let ct = ref 0 (* current trace level *)
36 let summary = ref false (* log summary information *)
38 let xdir = ref "" (* directory for XML output *)
40 let kernel = ref V3 (* kernel type *)
42 let si = ref false (* use sort inclusion *)
44 let cover = ref "" (* initial uri segment *)
46 let cc = ref false (* activate conversion constraints *)
48 let expand = ref false (* always expand global definitions *)
50 let indexes = ref false (* show de Bruijn indexes *)
52 let icm = ref 0 (* complexity measure of relocated terms *)
54 let unquote = ref false (* do not quote identifiers when lexing *)
56 let debug_parser = ref false (* output parser debug information *)
58 let debug_lexer = ref false (* output lexer debug information *)
60 let manager_dir = ref "" (* output directory for manager *)
62 let manager = ref Quiet (* manager *)
64 let preamble = ref "" (* preamble file for manager *)
66 let alpha = ref "" (* prefix of numeric identifiers *)
68 let first = ref 0 (* begin trace here *)
70 let last = ref max_int (* end trace here *)
72 let extended = ref false (* extended applications *)
74 let short = ref false (* short global constants *)
76 let set_current_trace n =
77 ct := if !first <= n && n <= !last then !trace else 0
80 let id = match !kernel with
82 | V3 -> "Environment_V3"
83 | V0 -> "Environment_V0"
85 let si = if !si then "_si" else "" in
86 let ext = if !extended then "_x" else "" in
90 String.concat "/" ["ld:"; kernel_id (); !cover; "" ]
93 let bu = get_baseuri () in
94 fun s -> KF.concat bu (s ^ ".ld")
97 stage := 3; trace := 0; summary := false; first := 0; last := max_int;
98 xdir := ""; kernel := V3; si := false; extended := false; cover := "";
99 expand := false; indexes := false; icm := 0; unquote := false; short := false;
100 debug_parser := false; debug_lexer := false;
101 manager_dir := ""; manager := Quiet