aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dml/sublanguage.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dml/sublanguage.ml')
-rw-r--r--lib/dml/sublanguage.ml13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/dml/sublanguage.ml b/lib/dml/sublanguage.ml
index cc9d200..a67ec66 100644
--- a/lib/dml/sublanguage.ml
+++ b/lib/dml/sublanguage.ml
@@ -1,8 +1,7 @@
-module Make (Storage : Management.Physical.S) = struct
- module Exec = Executor.Make (Storage)
+module Make (NT : Nt.S) = struct
+ module Exec = Executor.Make (NT)
type configuration = unit
- type storage = Storage.t
type ast = Ast.statement
type error = Exec.error
@@ -14,12 +13,10 @@ module Make (Storage : Management.Physical.S) = struct
| Ok r -> Ok r
| Error (Parser.ParseError s) -> Error (Exec.ParseError s)
- let execute storage db ast =
- match Exec.execute storage db ast with
- | Ok db -> Ok (Sublanguage_types.Transition db)
+ let execute ctx ast =
+ match Exec.execute ctx ast with
+ | Ok delta -> Ok (Sublanguage_types.Transition delta)
| Error e -> Error e
let sexp_of_error = Exec.sexp_of_error
end
-
-module Memory = Make (Management.Physical.Memory)