package coq

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
exception Parsing_error of string
type arg_source =
  1. | CmdLine
  2. | ProjectFile
type 'a sourced = {
  1. thing : 'a;
  2. source : arg_source;
}
type project = {
  1. project_file : string option;
  2. makefile : string option;
  3. native_compiler : native_compiler option;
  4. docroot : string option;
  5. v_files : string sourced list;
  6. mli_files : string sourced list;
  7. mlg_files : string sourced list;
  8. ml_files : string sourced list;
  9. mllib_files : string sourced list;
  10. mlpack_files : string sourced list;
  11. ml_includes : path sourced list;
  12. r_includes : (path * logic_path) sourced list;
  13. q_includes : (path * logic_path) sourced list;
  14. extra_args : string sourced list;
  15. defs : (string * string) sourced list;
}
and logic_path = string
and path = {
  1. path : string;
  2. canonical_path : string;
}
and native_compiler =
  1. | NativeYes
  2. | NativeNo
  3. | NativeOndemand
val cmdline_args_to_project : warning_fn:(string -> unit) -> curdir:string -> string list -> project
exception UnableToOpenProjectFile of string
val read_project_file : warning_fn:(string -> unit) -> string -> project

read_project_file warning_fn file parses file as a Coq project; use warning_fn for deprecate options; raise Parsing_error on illegal options or arguments; raise UnableToOpenProjectFile msg if the file could not be opened; fails on some illegal non-project-file options

val coqtop_args_from_project : project -> string list
val find_project_file : from:string -> projfile_name:string -> string option
val all_files : project -> string sourced list
val map_sourced_list : ('a -> 'b) -> 'a sourced list -> 'b list
val map_cmdline : ('a -> 'b) -> 'a sourced list -> 'b list

Only uses the elements with source=CmdLine

val filter_cmdline : 'a sourced list -> 'a list

Only uses the elements with source=CmdLine

val forget_source : 'a sourced -> 'a
OCaml

Innovation. Community. Security.