aboutsummaryrefslogtreecommitdiffhomepage
path: root/library/nametab.mli
blob: 68e2727405e0d21b1f8b934d38c77d5b15277ce1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

(* $Id$ *)

(*i*)
open Util
open Names
open Term
(*i*)

(* This module contains the table for globalization, which associates global
   names (section paths) to identifiers. *)

type cci_table = global_reference Idmap.t
type obj_table = (section_path * Libobject.obj) Idmap.t
type mod_table = module_contents Stringmap.t
and module_contents = Closed of cci_table * obj_table * mod_table

val push : identifier -> global_reference -> unit
val push_obj : identifier -> (section_path * Libobject.obj) -> unit
val push_module : string -> module_contents -> unit

val sp_of_id : path_kind -> identifier -> global_reference

(* This returns the section path of a constant or fails with [Not_found] *)
val constant_sp_of_id : identifier -> section_path

val locate : section_path -> global_reference
val locate_obj : section_path -> (section_path * Libobject.obj)
val locate_constant : section_path -> constant_path

val open_module_contents : string -> unit