(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* <O___,, * (see version control and CREDITS file for authors & dates) *) (* \VV/ **************************************************************) (* // * This file is distributed under the terms of the *) (* * GNU Lesser General Public License Version 2.1 *) (* * (see LICENSE file for the text of the license) *) (************************************************************************)
(** Definition of custom toplevels. [init_extra]isusedtodocustominitialization [run]launchesacustomtoplevel.
*)
type ('a,'b) custom_toplevel =
{ parse_extra : Coqargs.t -> stringlist -> 'a * string list
; usage : Boot.Usage.specific_usage
; init_extra : 'a -> Coqargs.injection_command list -> opts:Coqargs.t -> 'b
; initial_args : Coqargs.t
; run : 'a -> opts:Coqargs.t -> 'b -> unit
}
(** The generic Rocq main module. [start custom] will parse the command line, printthebanner,initializetheloadpath,loadtheinputstate, loadthefilesgivenonthecommandline,loadtheresourcefile, producetheoutputstateifany,andfinallywilllaunch [custom.run].
The[stringlist]argumentistypically[List.tl(Array.to_listSys.argv)].
*) val start_coq : ('a * Stm.AsyncOpts.stm_opt,'b) custom_toplevel -> stringlist -> unit
(** Prepare state for interactive loop *)
val init_toploop : Coqargs.t -> Stm.AsyncOpts.stm_opt -> Coqargs.injection_command list -> Vernac.State.t
(** The specific characterization of the coqtop_toplevel *)
type query = PrintTags | PrintModUid ofstringlist type run_mode = Interactive | Batch | Query of query
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.