diff options
author | Xavier Leroy <xavier.leroy@college-de-france.fr> | 2019-07-02 14:55:31 +0200 |
---|---|---|
committer | Xavier Leroy <xavierleroy@users.noreply.github.com> | 2019-07-17 09:17:28 +0200 |
commit | fb20aab431a768299118ed30822af59cab13325e (patch) | |
tree | 032ece0aa8bab2d9932b91056fbf0731fd72cf45 /cparser/Env.mli | |
parent | 8b0de52ffa302298abe8d0d6e3b6ed339a2354ba (diff) | |
download | compcert-kvx-fb20aab431a768299118ed30822af59cab13325e.tar.gz compcert-kvx-fb20aab431a768299118ed30822af59cab13325e.zip |
Remove the cparser/Builtins module
Move its definitions to modules C (the type `builtins`) and Env
(the operations that deal with the initial environment).
Reasons for the refactoring:
1- The name "Builtins" will soon be reused for a Coq module
2- `Env.initial()` makes more sense than `Builtins.environment()`.
Diffstat (limited to 'cparser/Env.mli')
-rw-r--r-- | cparser/Env.mli | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cparser/Env.mli b/cparser/Env.mli index 7ea2c514..1baab68f 100644 --- a/cparser/Env.mli +++ b/cparser/Env.mli @@ -77,3 +77,10 @@ val add_typedef : t -> C.ident -> typedef_info -> t val add_enum : t -> C.ident -> enum_info -> t val add_types : t -> t -> t + +(* Initial environment describing the builtin types and functions *) + +val initial: unit -> t +val initial_identifiers: unit -> C.ident list +val initial_declarations: unit -> C.globdecl list +val set_builtins: C.builtins -> unit |