| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
open Names |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
type is_type = bool |
| 20 |
type export_flag = Export | Import |
| 21 |
type export = (export_flag * Libobject.open_filter) option |
| 22 |
|
| 23 |
val make_oname : Libobject.object_prefix -> Names.Id.t -> Libobject.object_name |
| 24 |
val make_foname : Names.Id.t -> Libobject.object_name |
| 25 |
|
| 26 |
type 'summary node = |
| 27 |
| CompilingLibrary of Libobject.object_prefix |
| 28 |
| OpenedModule of is_type * export * Libobject.object_prefix * 'summary |
| 29 |
| OpenedSection of Libobject.object_prefix * 'summary |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
val node_prefix : 'summary node -> Libobject.object_prefix |
| 35 |
|
| 36 |
type 'summary library_segment = ('summary node * Libobject.t list) list |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
val add_leaf : Libobject.obj -> unit |
| 43 |
|
| 44 |
val add_discharged_leaf : Libobject.discharged_obj -> unit |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
val contents : unit -> Summary.Interp.frozen library_segment |
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
val prefix : unit -> Libobject.object_prefix |
| 71 |
val cwd : unit -> Libnames.full_path |
| 72 |
val cwd_except_section : unit -> Libnames.full_path |
| 73 |
val current_dirpath : bool -> DirPath.t |
| 74 |
val make_path : Id.t -> Libnames.full_path |
| 75 |
val make_path_except_section : Id.t -> Libnames.full_path |
| 76 |
|
| 77 |
|
| 78 |
val current_mp : unit -> ModPath.t |
| 79 |
val make_kn : Id.t -> KerName.t |
| 80 |
|
| 81 |
|
| 82 |
val sections_are_opened : unit -> bool |
| 83 |
val sections_depth : unit -> int |
| 84 |
|
| 85 |
|
| 86 |
val is_module_or_modtype : unit -> bool |
| 87 |
val is_modtype : unit -> bool |
| 88 |
|
| 89 |
|
| 90 |
val is_modtype_strict : unit -> bool |
| 91 |
val is_module : unit -> bool |
| 92 |
|
| 93 |
type discharged_item = |
| 94 |
| DischargedExport of Libobject.ExportObj.t |
| 95 |
| DischargedLeaf of Libobject.discharged_obj |
| 96 |
|
| 97 |
type classified_objects = { |
| 98 |
substobjs : Libobject.t list; |
| 99 |
keepobjs : Libobject.keep_objects; |
| 100 |
escapeobjs : Libobject.escape_objects; |
| 101 |
anticipateobjs : Libobject.t list; |
| 102 |
} |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
module type StagedLibS = sig |
| 107 |
|
| 108 |
type summary |
| 109 |
|
| 110 |
|
| 111 |
val find_opening_node : ?loc:Loc.t -> Id.t -> summary node |
| 112 |
|
| 113 |
val add_entry : summary node -> unit |
| 114 |
val add_leaf_entry : Libobject.t -> unit |
| 115 |
|
| 116 |
|
| 117 |
val open_section : Id.t -> unit |
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
val close_section : unit -> discharged_item list |
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
val start_module : |
| 126 |
export -> Id.t -> ModPath.t -> |
| 127 |
summary -> Libobject.object_prefix |
| 128 |
|
| 129 |
val start_modtype : |
| 130 |
Id.t -> ModPath.t -> |
| 131 |
summary -> Libobject.object_prefix |
| 132 |
|
| 133 |
val end_module : |
| 134 |
unit -> |
| 135 |
Libobject.object_prefix * summary * classified_objects |
| 136 |
|
| 137 |
val end_modtype : |
| 138 |
unit -> |
| 139 |
Libobject.object_prefix * summary * classified_objects |
| 140 |
|
| 141 |
type frozen |
| 142 |
|
| 143 |
val freeze : unit -> frozen |
| 144 |
val unfreeze : frozen -> unit |
| 145 |
val init : unit -> unit |
| 146 |
|
| 147 |
|
| 148 |
val drop_objects : frozen -> frozen |
| 149 |
|
| 150 |
val declare_info : Library_info.t -> unit |
| 151 |
|
| 152 |
end |
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
module Synterp : StagedLibS with type summary = Summary.Synterp.frozen |
| 158 |
module Interp : StagedLibS with type summary = Summary.Interp.frozen |
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
val start_compilation : DirPath.t -> ModPath.t -> unit |
| 163 |
|
| 164 |
type compilation_result = { |
| 165 |
info : Library_info.t; |
| 166 |
synterp_objects : classified_objects; |
| 167 |
interp_objects : classified_objects; |
| 168 |
} |
| 169 |
|
| 170 |
|
| 171 |
val end_compilation : DirPath.t -> compilation_result |
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
val library_dp : unit -> DirPath.t |
| 176 |
|
| 177 |
|
| 178 |
val split_modpath : ModPath.t -> DirPath.t * Id.t list |
| 179 |
val library_part : GlobRef.t -> DirPath.t |
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
val init : unit -> unit |