Debian Codegraph @

toplevel/vernac.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 type time_output
12
13 val make_time_output : Coqargs.time_config -> time_output
14
15 (** Parsing of vernacular. *)
16 module State : sig
17
18 type t = {
19 doc : Stm.doc;
20 sid : Stateid.t;
21 proof : Proof.t option;
22 time : time_output option;
23 }
24
25 end
26
27 (** [process_expr sid cmd] Executes vernac command [cmd]. Callers are
28 expected to handle and print errors in form of exceptions, however
29 care is taken so the state machine is left in a consistent
30 state. *)
31 val process_expr : state:State.t -> Vernacexpr.vernac_control -> State.t
32
33 (** [load_vernac echo sid file] Loads [file] on top of [sid], will
34 echo the commands if [echo] is set. Callers are expected to handle
35 and print errors in form of exceptions. *)
36 val load_vernac : echo:bool -> check:bool ->
37 state:State.t -> ?source:Loc.source -> string -> State.t