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 = Crg | Brg | Bag
20 (* interface functions ******************************************************)
22 let version_string = "Helena 0.8.2 M - November 2014"
24 let stage = ref 3 (* stage *)
26 let trace = ref 0 (* trace level *)
28 let summary = ref false (* log summary information *)
30 let xdir = ref "" (* directory for XML output *)
32 let kernel = ref Brg (* kernel type *)
34 let si = ref false (* use sort inclusion *)
36 let cover = ref "" (* initial uri segment *)
38 let cc = ref false (* activate conversion constraints *)
40 let expand = ref false (* always expand global definitions *)
42 let indexes = ref false (* show de Bruijn indexes *)
44 let icm = ref 0 (* complexity measure of relocated terms *)
46 let unquote = ref false (* do not quote identifiers when lexing *)
48 let debug_parser = ref false (* output parser debug information *)
50 let debug_lexer = ref false (* output lexer debug information *)
52 let ma_dir = ref "" (* directory for grafite output *)
54 let ma_preamble = ref "" (* location of grafite preamble file *)
57 let id = match !kernel with
62 let si = if !si then "_si" else "" in
66 String.concat "/" ["ld:"; kernel_id (); !cover; "" ]
69 let bu = get_baseuri () in
70 fun s -> F.concat bu (s ^ ".ld")
73 stage := 3; trace := 0; summary := false;
74 xdir := ""; kernel := Brg; si := false; cover := "";
75 expand := false; indexes := false; icm := 0; unquote := false;
76 debug_parser := false; debug_lexer := false;
77 ma_dir := ""; ma_preamble := ""