aboutsummaryrefslogblamecommitdiffstats
path: root/lib/dml/sublanguage.ml
blob: 96487867f9e085ebec6322e5b3d89f7a55405e34 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                  
 
                           
                          

                  
                     
 
                                           
 


                                                         
                        
   
module Make (NT : Nt.S) = struct
  module Exec = Executor.Make (NT)

  type configuration = unit
  type ast = Ast.statement

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

  let parse_sexp sexp = Parser.of_sexp sexp

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