Debian Codegraph @

vernac/topfmt.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 (** Console printing options *)
12
13 type pp_global_params = {
14 margin : int;
15 max_indent : int;
16 max_depth : int;
17 ellipsis : string }
18
19 val dflt_gp : pp_global_params
20 val deep_gp : pp_global_params
21 val set_gp : Format.formatter -> pp_global_params -> unit
22 val set_dflt_gp : Format.formatter -> unit
23 val get_gp : Format.formatter -> pp_global_params
24
25 (** {6 Output functions of pretty-printing. } *)
26
27 val with_output_to : out_channel -> Format.formatter
28
29 val std_ft : Format.formatter ref
30 val err_ft : Format.formatter ref
31 val deep_ft : Format.formatter ref
32
33 (** {6 For parametrization through vernacular. } *)
34
35 val set_depth_boxes : int option -> unit
36 val get_depth_boxes : unit -> int option
37
38 val set_margin : int option -> unit
39 val get_margin : unit -> int option
40
41 (** Console display of feedback, we may add some location information *)
42 val std_logger : ?qf:Quickfix.t list -> ?pre_hdr:Pp.t -> Feedback.level -> Pp.t -> unit
43 val emacs_logger : ?qf:Quickfix.t list -> ?pre_hdr:Pp.t -> Feedback.level -> Pp.t -> unit
44
45 (** Color output *)
46 val default_styles : unit -> unit
47 val parse_color_config : string -> unit
48 val dump_tags : unit -> (string * Terminal.style) list
49 val set_emacs_print_strings : unit -> unit
50
51 (** Initialization of interpretation of tags *)
52 val init_terminal_output : color:bool -> unit
53
54 (** Error printing *)
55 (* To be deprecated when we can fully move to feedback-based error
56 printing. *)
57
58 type execution_phase =
59 | ParsingCommandLine
60 | Initialization
61 | LoadingPrelude
62 | LoadingRcFile
63 | InteractiveLoop
64 | CompilationPhase
65
66 val in_phase : phase:execution_phase -> ('a -> 'b) -> 'a -> 'b
67
68 val pr_phase : ?loc:Loc.t -> unit -> Pp.t option
69 val print_err_exn : exn -> unit
70
71 (** [with_output_to_file ~truncate file f x] executes [f x] with
72 logging redirected to a file [file] (starting empty if
73 [truncate:true], otherwise appending if it already exists). *)
74 val with_output_to_file : truncate:bool -> string -> ('a -> 'b) -> 'a -> 'b
75
76 val pr_cmd_header : Vernacexpr.vernac_control -> Pp.t