aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ddl/sublanguage.ml
blob: 33145c4575df686fc554bdd7f757dd10e35e9477 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Make (NT : Nt.S) = struct
  module Exec = Executor.Make (NT)

  type configuration = unit
  type ast = Ast.statement

  let name = "ddl"
  let parse _ = Ok ()

  let parse_sexp sexp = Parser.of_sexp sexp

  let execute ctx ast =
    match Exec.execute ctx ast with
    | Ok (delta, _msg) -> Ok (Sublanguage_types.Transition delta)
    | Error e -> Error e
end