package coq-core

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val default_toplevel : Names.DirPath.t
type native_compiler = Coq_config.native_compiler =
  1. | NativeOff
  2. | NativeOn of {
    1. ondemand : bool;
    }
type top =
  1. | TopLogical of Names.DirPath.t
  2. | TopPhysical of string
type option_command =
  1. | OptionSet of string option
  2. | OptionUnset
  3. | OptionAppend of string
type injection_command =
  1. | OptionInjection of Goptions.option_name * option_command
    (*

    Set flags or options before the initial state is ready.

    *)
  2. | RequireInjection of string * string option * Lib.export_flag option
    (*

    Require libraries before the initial state is ready. Parameters follow Library, that is to say, lib,prefix,import_export means require library lib from optional prefix and import_export if Some Lib.Import/Some Lib.Export is used.

    *)
  3. | WarnNoNative of string
    (*

    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.

    *)
  4. | WarnNativeDeprecated
    (*

    Used so that "-w -native-compiler-deprecated-option -native-compiler FLAG" does not cause a warning, similarly to above.

    *)
type coqargs_logic_config = {
  1. impredicative_set : bool;
  2. indices_matter : bool;
  3. type_in_type : bool;
  4. toplevel_name : top;
}
type coqargs_config = {
  1. logic : coqargs_logic_config;
  2. rcfile : string option;
  3. coqlib : string option;
  4. enable_VM : bool;
  5. native_compiler : native_compiler;
  6. native_output_dir : CUnix.physical_path;
  7. native_include_dirs : CUnix.physical_path list;
  8. time : bool;
  9. print_emacs : bool;
}
type coqargs_pre = {
  1. boot : bool;
  2. load_init : bool;
  3. load_rcfile : bool;
  4. ml_includes : CUnix.physical_path list;
  5. vo_includes : Loadpath.vo_path list;
  6. load_vernacular_list : (string * bool) list;
  7. injections : injection_command list;
}
type coqargs_query =
  1. | PrintWhere
  2. | PrintConfig
  3. | PrintVersion
  4. | PrintMachineReadableVersion
  5. | PrintHelp of Boot.Usage.specific_usage
type coqargs_main =
  1. | Queries of coqargs_query list
  2. | Run
type coqargs_post = {
  1. memory_stat : bool;
}
type t = {
  1. config : coqargs_config;
  2. pre : coqargs_pre;
  3. main : coqargs_main;
  4. post : coqargs_post;
}
val default : t
val parse_args : usage:Boot.Usage.specific_usage -> init:t -> string list -> t * string list
val injection_commands : t -> injection_command list
val dirpath_of_top : top -> Names.DirPath.t
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
val set_option : (Goptions.option_name * option_command) -> unit
OCaml

Innovation. Community. Security.