(* ||M|| This file is part of HELM, an Hypertextual, Electronic ||A|| Library of Mathematics, developed at the Computer Science ||T|| Department, University of Bologna, Italy. ||I|| ||T|| HELM is free software; you can redistribute it and/or ||A|| modify it under the terms of the GNU General Public License \ / version 2 or (at your option) any later version. \ / This software is distributed as is, NO WARRANTY. V_______________________________________________________________ *) module C = Cps type uri_generator = string -> string (* interface functions ******************************************************) let indexes = ref false (* show de Bruijn indexes *) let expand = ref false (* always expand global definitions *) let si = ref false (* use sort inclusion *) let unquote = ref false (* do not quote identifiers when lexing *) let icm = ref 0 (* complexity measure of relocated terms *) let cover = ref "" (* initial uri segment *) let debug_parser = ref false (* output parser debug information *) let debug_lexer = ref false (* output lexer debug information *) let mk_uri = ref (fun _ _ -> C.err : bool -> string -> uri_generator) let get_mk_uri () = !mk_uri !si !cover let clear () = expand := false; si := false; cover := ""; indexes := false; icm := 0; debug_parser := false; debug_lexer := false; mk_uri := fun _ _ -> C.err