package elpi

  1. Overview
  2. Docs

This module defines what embedding and readback functions are

type ty_ast =
  1. | TyName of string
  2. | TyApp of string * ty_ast * ty_ast list
type extra_goals = Data.term list
type 'a embedding = depth:int -> Data.hyps -> Data.constraints -> Data.state -> 'a -> Data.state * Data.term * extra_goals
type 'a readback = depth:int -> Data.hyps -> Data.constraints -> Data.state -> Data.term -> Data.state * 'a * extra_goals
type 'a t = {
  1. ty : ty_ast;
  2. pp_doc : Format.formatter -> unit -> unit;
  3. pp : Format.formatter -> 'a -> unit;
  4. embed : 'a embedding;
  5. readback : 'a readback;
}
exception TypeErr of ty_ast * int * Data.term
OCaml

Innovation. Community. Security.