aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sublanguage.ml
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-09-26 22:09:11 -0300
committerMarcos Magueta <maguetamarcos@gmail.com>2026-09-26 22:09:11 -0300
commit320954996e921d7b34eb61f462799b5c6ab8ee09 (patch)
tree16697bc161faf27f0b4c1ba57f6fcc24d240801b /lib/sublanguage.ml
parentb555c28c7e6c315fc0394baf213ecb08b21ed959 (diff)
downloadSakura-320954996e921d7b34eb61f462799b5c6ab8ee09.tar.gz
Sakura-320954996e921d7b34eb61f462799b5c6ab8ee09.zip
new shrunk API for RNT on sakura
Diffstat (limited to 'lib/sublanguage.ml')
-rw-r--r--lib/sublanguage.ml20
1 files changed, 2 insertions, 18 deletions
diff --git a/lib/sublanguage.ml b/lib/sublanguage.ml
index db66b27..1bdead1 100644
--- a/lib/sublanguage.ml
+++ b/lib/sublanguage.ml
@@ -1,19 +1,3 @@
-(** Effect classification for sublanguage operations.
-
- Categorically:
- - Query: a natural transformation between instance functors (DRL).
- Side-effect-free; the database state is unchanged.
- - Transition: a morphism in the category of database states (DDL, DML, ICL,
- DCL, and future TCL). Produces a new state via substitution (Harper, PFPL
- ch. 3-4).
-
- Future sublanguages:
- - TCL -> Transition (transaction boundaries are state morphisms with
- atomicity constraints)
- - PPL -> new effect class: potentially non-terminating computation
- (Turing-complete; breaks the termination guarantee of DRL)
- - ACL -> a functor restriction: narrows the admissible natural
- transformations based on authorization context *)
include Sublanguage_types
module type S = sig
@@ -22,6 +6,6 @@ module type S = sig
type ast
val name : string
- val parse_sexp : Sexplib.Sexp.t -> (ast, Condition.t) Result.t
- val execute : Sublanguage_context.t -> ast -> (result, Condition.t) Result.t
+ val parse_sexp : Sexplib.Sexp.t -> (ast, Condition.condition) Result.t
+ val execute : Sublanguage_context.t -> ast -> (result, Condition.condition) Result.t
end