aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2017-11-22 10:57:11 +0100
committerSébastien Dailly <sebastien@chimrod.com>2017-11-22 10:57:11 +0100
commit18f6319703d7bec460754fdceee5f0f2cfbc2702 (patch)
tree4c797600b62ccf3afc9e6c591703167c394bd033
parent79f1dddf8958a65ce57ac4601a36289019b5f384 (diff)
Catalog representation
-rwxr-xr-xevaluator.ml4
-rwxr-xr-xevaluator.mli2
2 files changed, 5 insertions, 1 deletions
diff --git a/evaluator.ml b/evaluator.ml
index 12d60b8..2809507 100755
--- a/evaluator.ml
+++ b/evaluator.ml
@@ -82,7 +82,9 @@ module C = Catalog.Make(Data)
type t = C.t
-let catalog = C.empty
+let catalog = ref C.empty
+
+let get_catalog () = !catalog
let repr = C.repr
diff --git a/evaluator.mli b/evaluator.mli
index ce5db7b..b296b90 100755
--- a/evaluator.mli
+++ b/evaluator.mli
@@ -4,6 +4,8 @@ val eval: (ScTypes.refs -> ScTypes.result option ScTypes.Refs.range) -> ScTypes.
val repr: Format.formatter -> t -> unit
+val get_catalog: unit -> t
+
(** Type definitions *)
type 'a typ