diff options
| author | herbelin | 2001-08-10 14:42:22 +0000 |
|---|---|---|
| committer | herbelin | 2001-08-10 14:42:22 +0000 |
| commit | 8e92ee787e7d1fd48cae1eccf67a9b05e739743e (patch) | |
| tree | b33191fbaba0cad4b14a96cf5d7786dd2c07c3d7 /library/lib.mli | |
| parent | c0a3b41ad2f2afba3f060e0d4001bd7aceea0831 (diff) | |
Parsing
- Typage renforcé dans les grammaires (distinction des vars et des metavars)
- Disparition de SLAM au profit de ABSTRACT
- Paths primitifs dans les quotations (syntaxe concrète à base de .)
- Mise en place de identifier dès le type ast
- Protection de identifier contre les effets de bord via un String.copy
- Utilisation de module_ident (= identifier) dans les dir_path (au
lieu de string)
Table des noms qualifiés
- Remplacement de la table de visibilité par une table qui ne cache
plus les noms de modules et sections mais seulement les noms des
constantes (e.g. Require A. ne cachera plus le contenu d'un éventuel
module A déjà existant : seuls les noms de constructions de l'ancien
A qui existent aussi dans le nouveau A seront cachés)
- Renoncement à la possibilité d'accéder les formes non déchargées des
constantes définies à l'intérieur de sections et simplification
connexes (suppression de END-SECTION, une seule table de noms qui ne
survit pas au discharge)
- Utilisation de noms longs pour les modules, de noms qualifiés pour
Require and co, tests de cohérence; pour être cohérent avec la non
survie des tables de noms à la sortie des section, les require à
l'intérieur d'une section eux aussi sont refaits à la fermeture de la
section
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1889 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library/lib.mli')
| -rw-r--r-- | library/lib.mli | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/library/lib.mli b/library/lib.mli index 9b5326db1e..b22839a3da 100644 --- a/library/lib.mli +++ b/library/lib.mli @@ -21,8 +21,8 @@ open Summary type node = | Leaf of obj | Module of dir_path - | OpenedSection of string * Summary.frozen - | ClosedSection of bool * string * library_segment + | OpenedSection of module_ident * Summary.frozen + | ClosedSection of bool * module_ident * library_segment | FrozenState of Summary.frozen and library_entry = section_path * node @@ -47,9 +47,9 @@ val contents_after : section_path option -> library_segment (*s Opening and closing a section. *) -val open_section : string -> section_path +val open_section : identifier -> section_path val close_section : - export:bool -> string -> section_path * library_segment * Summary.frozen + export:bool -> identifier -> section_path * library_segment * Summary.frozen val sections_are_opened : unit -> bool val make_path : identifier -> path_kind -> section_path @@ -57,7 +57,8 @@ val cwd : unit -> dir_path val is_section_p : dir_path -> bool val start_module : dir_path -> unit -val export_module : unit -> library_segment +val end_module : module_ident -> dir_path +val export_module : dir_path -> library_segment (*s Backtracking (undo). *) |
