(************************************************************************) (* * 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) *) (************************************************************************)
let coqc_specific_usage = Boot.Usage.{
executable_name = "rocq compile";
extra_args = "file...";
extra_options = "\n\
rocq compile specific options:\
\n -o f.vo use f.vo as the output file name\
\n -verbose compile and output the input file\
\n -noglob donot dump globalizations\
\n -dump-glob f dump globalizations in file f (to be used by coqdoc)\
\n -vos process statements but ignore opaque proofs, and produce a .vos file\
\n -vok process the file by loading .vos instead of .vo files for\
\n dependencies, and produce an empty .vok file on success\
\n"
}
if copts.Coqcargs.output_context thenbegin let sigma, env = let e = Global.env () in Evd.from_env e, e in let access = Library.indirect_accessor[@@warning "-3"] in
Feedback.msg_notice Pp.(Flags.(with_option raw_print (fun () ->
Prettyp.print_full_pure_context access env sigma) ()) ++ fnl ()) end;
()
let coqc_run copts ~opts injections = let _feeder = Feedback.add_feeder Coqloop.coqloop_feed in try
coqc_main ~opts copts injections;
exit 0 with exn ->
flush_all();
Topfmt.print_err_exn exn;
flush_all(); let exit_code = if (CErrors.is_anomaly exn) then129else1in
exit exit_code
let fix_stm_opts opts stm_opts = match opts.Coqcargs.compilation_mode with
| BuildVos -> (* We need to disable error resiliency, otherwise some errors willbeignoredinbatchmode.c.f.#6707
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.