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_______________________________________________________________ *)
15 type uri_generator = string -> string
17 type kernel = Crg | Brg | Bag
19 (* interface functions ******************************************************)
25 let si = ref false (* use sort inclusion *)
27 let cover = ref "" (* initial uri segment *)
29 let cc = ref false (* activate conversion constraints *)
31 let expand = ref false (* always expand global definitions *)
33 let indexes = ref false (* show de Bruijn indexes *)
35 let icm = ref 0 (* complexity measure of relocated terms *)
37 let unquote = ref false (* do not quote identifiers when lexing *)
39 let debug_parser = ref false (* output parser debug information *)
41 let debug_lexer = ref false (* output lexer debug information *)
44 let id = match !kernel with
49 let si = if !si then "_si" else "" in
53 String.concat "/" ["ld:"; kernel_id (); !cover; "" ]
56 let bu = get_baseuri () in
57 fun s -> F.concat bu (s ^ ".ld")
60 xdir := ""; kernel := Brg; si := false; cover := "";
61 expand := false; indexes := false; icm := 0; unquote := false;
62 debug_parser := false; debug_lexer := false