(************************************************************************) (* * 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) *) (************************************************************************)
type native_compiler = Coq_config.native_compiler =
NativeOff | NativeOn of { ondemand : bool }
type top = TopLogical ofstring | TopPhysical ofstring
type option_command =
| OptionSet ofstringoption
| OptionUnset
type export_flag = Export | Import
type require_injection = { lib: string; prefix: stringoption; export: export_flag option; allow_failure: bool } (** Parameters follow [Library], that is to say, [lib,prefix,export] means require library [lib] from optional [prefix] and import or
export if [export] is [Some Lib.Import]/[Some Lib.Export]. *)
type injection_command =
| OptionInjection of (stringlist * option_command) (** Set flags or options before the initial state is ready. *)
| RequireInjection of require_injection (** Require libraries before the initial state is
ready. *)
| WarnNoNative ofstring (** Used so that "-w -native-compiler-disabled -native-compiler yes" does not cause a warning. The native option must be processed before injections (because it affects require), so the
instruction to emit a message is separated. *)
| WarnNativeDeprecated (** Used so that "-w -native-compiler-deprecated-option -native-compiler FLAG"
does not cause a warning, similarly to above. *)
type coqargs_main =
| Queries of Boot.Usage.query list
| Run
type coqargs_post = {
memory_stat : bool;
}
type t = {
config : coqargs_config;
pre : coqargs_pre;
main : coqargs_main;
post : coqargs_post;
}
(* Default options *) val default : t
val parse_args : init:t -> stringlist -> t * stringlist
val injection_commands : t -> injection_command list
(* Common utilities *)
val get_int : opt:string -> string -> int val get_int_opt : opt:string -> string -> int option val get_bool : opt:string -> string -> bool val get_float : opt:string -> string -> float val error_missing_arg : string -> 'a val error_wrong_arg : string -> 'a
¤ Dauer der Verarbeitung: 0.16 Sekunden
(vorverarbeitet)
¤
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 ist noch experimentell.