aboutsummaryrefslogtreecommitdiff
path: root/lib/syntax/identifier.mli
diff options
context:
space:
mode:
Diffstat (limited to 'lib/syntax/identifier.mli')
-rw-r--r--lib/syntax/identifier.mli37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/syntax/identifier.mli b/lib/syntax/identifier.mli
new file mode 100644
index 0000000..4c6387b
--- /dev/null
+++ b/lib/syntax/identifier.mli
@@ -0,0 +1,37 @@
+type t =
+ | E : {
+ module_ :
+ (module Analyzer.T
+ with type Expression.t = 'a
+ and type Expression.t' = 'b
+ and type Instruction.t = 'c
+ and type Instruction.t' = 'd
+ and type Location.t = 'e
+ and type context = 'f
+ and type ex = t);
+ expr_witness : 'a Type.Id.t;
+ expr' : 'b Type.Id.t;
+ instr_witness : 'c Type.Id.t;
+ instr' : 'd Type.Id.t;
+ location_witness : 'e Type.Id.t;
+ context : 'f Type.Id.t;
+ }
+ -> t (** Type of check to apply *)
+
+val build :
+ ?expression_id:'a Type.Id.t ->
+ ?location_id:'b Type.Id.t ->
+ ?context_id:'c Type.Id.t ->
+ (module Analyzer.T
+ with type Expression.t = 'a
+ and type Expression.t' = _
+ and type Instruction.t = _
+ and type Instruction.t' = _
+ and type Location.t = 'b
+ and type context = 'c
+ and type ex = t) ->
+ t
+(** Build a new check from a module following S.Analyzer signature. ypeid Return
+ the result type which hold the final result value, and checker itself. *)
+
+val get_module : t -> (module Analyzer.T)