From ca8c92915bd3a7fa19ef57b8bd5a9b3f16d05254 Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Sun, 13 Sep 2026 14:27:37 -0300 Subject: fol evaluator --- lib/protocols/Program.mli | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'lib/protocols/Program.mli') diff --git a/lib/protocols/Program.mli b/lib/protocols/Program.mli index a795f16..1d6c3ae 100644 --- a/lib/protocols/Program.mli +++ b/lib/protocols/Program.mli @@ -1,21 +1,23 @@ -type t +module type PROGRAM = sig + type t +end + +module Make (P : PROGRAM) : sig + type t + + class type implementation = object + method invoke : + program:P.t -> + Context.t -> + (Handle.t, Concepts.Condition.condition) result + end -class type implementation = object - method entry_points : string BatFingerTree.t - method invoke : - entry:string -> - bindings:Concepts.Tuple.t -> + val make : #implementation -> Handle.protocol + val from : Handle.t -> t Handle.interface option + + val invoke : + t Handle.interface -> + program:P.t -> Context.t -> (Handle.t, Concepts.Condition.condition) result end - -val make : #implementation -> Handle.protocol -val from : Handle.t -> t Handle.interface option -val entry_points : t Handle.interface -> string BatFingerTree.t - -val invoke : - t Handle.interface -> - entry:string -> - bindings:Concepts.Tuple.t -> - Context.t -> - (Handle.t, Concepts.Condition.condition) result -- cgit v1.2.3