Debian Codegraph @

toplevel/coqloop.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 (** The Rocq toplevel loop. *)
12
13 (** A buffer for the character read from a channel. We store the command
14 * entered to be able to report errors without pretty-printing. *)
15
16 type input_buffer
17
18 (** The input buffer of stdin. *)
19
20 val top_buffer : input_buffer
21 val set_prompt : (unit -> string) -> unit
22
23 (** Toplevel feedback printer. *)
24 val coqloop_feed : Feedback.feedback -> unit
25
26 (** State tracked while in the OCaml toplevel *)
27 val ml_toplevel_state : Vernac.State.t option ref
28
29 (** Whether the "include" file was already run at least once *)
30 val ml_toplevel_include_ran : bool ref
31
32 (** The main loop *)
33 val loop : state:Vernac.State.t -> Vernac.State.t
34
35 (** Main entry point of Rocq: read and execute vernac commands. *)
36 val run : opts:Coqargs.t -> state:Vernac.State.t -> unit