aboutsummaryrefslogtreecommitdiffstats
path: root/lib/evaluators/FOL.ml
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-09-25 21:51:33 -0300
committerMarcos Magueta <maguetamarcos@gmail.com>2026-09-25 21:51:33 -0300
commit584fbca6d920e9a9f91d451667f9380714ac2175 (patch)
treea163b916a6f8cb550c8b38ceb01ab01558687a40 /lib/evaluators/FOL.ml
parentc7b754e96714eeeb9d315ee3de402d73a27d47db (diff)
downloadRNT-584fbca6d920e9a9f91d451667f9380714ac2175.tar.gz
RNT-584fbca6d920e9a9f91d451667f9380714ac2175.zip
dune fmt
Diffstat (limited to 'lib/evaluators/FOL.ml')
-rw-r--r--lib/evaluators/FOL.ml30
1 files changed, 14 insertions, 16 deletions
diff --git a/lib/evaluators/FOL.ml b/lib/evaluators/FOL.ml
index eba57a1..4299524 100644
--- a/lib/evaluators/FOL.ml
+++ b/lib/evaluators/FOL.ml
@@ -9,8 +9,7 @@ module Error = struct
condition "evaluation-cancelled" "An evaluation was stopped before it produced its result" empty
end
-type plan = Base of Protocols.Handle.t
- | Project of plan * string BatFingerTree.t
+type plan = Base of Protocols.Handle.t | Project of plan * string BatFingerTree.t
module Program = Protocols.Program.Make (struct
type t = plan
@@ -20,21 +19,20 @@ let execute =
let open Utilities.Result in
function
| Base relation_handle ->
- Fun.protect
- ~finally:(fun () -> Protocols.Handle.release relation_handle)
- (fun () ->
- let* enumerable = Protocols.Enumerable.require relation_handle in
- Protocols.Enumerable.enumerate enumerable)
+ Fun.protect
+ ~finally:(fun () -> Protocols.Handle.release relation_handle)
+ (fun () ->
+ let* enumerable = Protocols.Enumerable.require relation_handle in
+ Protocols.Enumerable.enumerate enumerable )
| Project (_plan, _attributes) -> failwith "TODO"
-class evaluator = object (self)
- inherit Kernel.Lifecycle.null
- inherit Kernel.Identity.of_id
-
- method to_string = "fol-evaluator"
-
- method invoke = execute
- method protocols : Protocols.Handle.protocol list = [Program.make self]
-end
+class evaluator =
+ object (self)
+ inherit Kernel.Lifecycle.null
+ inherit Kernel.Identity.of_id
+ method to_string = "fol-evaluator"
+ method invoke = execute
+ method protocols : Protocols.Handle.protocol list = [Program.make self]
+ end
let make () = new evaluator |> Protocols.Handle.make