aboutsummaryrefslogtreecommitdiff
path: root/kernel/nativevalues.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-06-11 11:22:24 +0200
committerGaëtan Gilbert2019-06-11 11:22:24 +0200
commit793a442d240c22f99591388ad31e33fbaef96fb0 (patch)
tree1479c5e61cb174356bc5deea2f6ec64b05f21036 /kernel/nativevalues.ml
parent45306c6c9c433b86406d041f58aafb7cf3a3ff82 (diff)
Move type definition Nativecode.symbols to Nativevalues
Preparing for it to be stored in an Environ.env.
Diffstat (limited to 'kernel/nativevalues.ml')
-rw-r--r--kernel/nativevalues.ml17
1 files changed, 17 insertions, 0 deletions
diff --git a/kernel/nativevalues.ml b/kernel/nativevalues.ml
index 3eb51ffc59..1102dd6cae 100644
--- a/kernel/nativevalues.ml
+++ b/kernel/nativevalues.ml
@@ -66,6 +66,23 @@ type atom =
| Aevar of Evar.t * t array
| Aproj of (inductive * int) * accumulator
+type symbol =
+ | SymbValue of t
+ | SymbSort of Sorts.t
+ | SymbName of Name.t
+ | SymbConst of Constant.t
+ | SymbMatch of annot_sw
+ | SymbInd of inductive
+ | SymbMeta of metavariable
+ | SymbEvar of Evar.t
+ | SymbLevel of Univ.Level.t
+ | SymbProj of (inductive * int)
+
+type symbols = symbol array
+
+let empty_symbols = [| |]
+
+
let accumulate_tag = 0
(** Unique pointer used to drive the accumulator function *)