Module API.PPX

module Doc : sig ... end
type declaration

The declarations derived by the ppx

val empty_declaration : unit -> declaration
val add_declarations : declaration -> BuiltIn.declaration list -> unit
val to_list : declaration -> BuiltIn.declaration list

Get the declation list in the right order to initialize elpi

class ctx : Data.hyps -> object ... end
type 'a ctx_entry = {
  1. entry : 'a;
  2. depth : int;
}
val pp_ctx_entry : (Stdlib.Format.formatter -> 'a -> unit) -> Stdlib.Format.formatter -> 'a ctx_entry -> unit
val show_ctx_entry : (Stdlib.Format.formatter -> 'a -> unit) -> 'a ctx_entry -> string
type 'a ctx_field = 'a ctx_entry Data.Constants.Map.t
type ('a, 'k, 'c, 'csts) context = {
  1. is_entry_for_bound_var : Data.hyp -> Data.constant option;
  2. to_key : depth:int -> 'a -> 'k;
  3. push : depth:int -> Data.state -> 'k -> 'a ctx_entry -> Data.state;
  4. pop : depth:int -> Data.state -> 'k -> Data.state;
  5. conv : (Data.constant * 'a, 'c, 'csts) ContextualConversion.t;
  6. init : Data.state -> Data.state;
  7. get : Data.state -> 'a ctx_field;
}
val readback_context : ('a, 'k, 'c, 'csts) context -> 'c -> depth:int -> Data.hyps -> 'csts -> Data.state -> Data.state * Conversion.extra_goals