aboutsummaryrefslogblamecommitdiffstats
path: root/lib/prl/sublanguage.ml
blob: 13df9c6773144e4983ed436f1ee320fda3be62cd (plain) (tree)


















                                                              
module Make (Storage : Management.Physical.S) = struct
  module Exec = Executor.Make (Storage)

  type configuration = unit
  type storage = Storage.t
  type ast = Ast.statement
  type error = Exec.error

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

  let parse_sexp sexp =
    match Parser.of_sexp sexp with
    | Ok r -> Ok r
    | Error (Parser.ParseError s) -> Error (Exec.ParseError s)

  let execute = Exec.execute
  let sexp_of_error = Exec.sexp_of_error
end