Debian Codegraph @

tools/coqdoc/common.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 (* Misc types **********************************************************************)
12 type target_language = LaTeX | HTML | TeXmacs | Raw
13 type output_t = StdOut | MultFiles | File of string
14 type coq_module = string
15 type file_t = Vernac_file of string * coq_module | Latex_file of string
16 type glob_source_t = NoGlob | DotGlob | GlobFile of string
17 type encoding_t = {
18 charset : string;
19 inputenc : string;
20 latin1 : bool;
21 utf8 : bool;
22 }
23 type otype = Dvi | Ps | Pdf
24 (* End misc types ******************************************************************)
25
26 (* Globals *************************************************************************)
27 val page_title : string ref
28 val out_channel : out_channel ref
29 (* End globals *********************************************************************)
30
31 (** User-setable options from command line [coqdoc] arugments **********************)
32 type t = {
33 targetlang : target_language;
34 coqlib : string option;
35 compile_targets : otype list;
36 out_to : output_t;
37 output_dir : string;
38 gallina : bool;
39 short : bool;
40 light : bool;
41 title : string;
42 header_trailer : bool;
43 header_file : string option;
44 footer_file : string option;
45 index : bool;
46 binder_index : bool;
47 multi_index : bool;
48 index_name : string;
49 toc : bool;
50 files : file_t list;
51 glob_source : glob_source_t;
52 quiet : bool;
53 externals : bool;
54 coqlib_url : string;
55 paths : (string * string) list;
56 encoding : encoding_t;
57 interpolate : bool;
58 raw_comments : bool;
59 parse_comments : bool;
60 plain_comments : bool;
61 toc_depth : int option;
62 lib_name : string;
63 lib_subtitles : bool;
64 inline_notmono : bool;
65 }
66
67 (* All command-line options will be stored here after parse_args is called *)
68 val prefs : t ref
69
70 (* Little helpers ******************************************************************)
71 val (/) : string -> string -> string
72 val coqdoc_out : string -> string
73 val open_out_file : string -> unit
74 val close_out_file : unit -> unit
75 (* End little helpers **************************************************************)