package bin_prot

  1. Overview
  2. Docs
A binary protocol generator

Install

Dune Dependency

Authors

Maintainers

Sources

v0.14.1.tar.gz
sha256=e7104063af1ee0bd91c564da9eb96e05fffe9f7cd0df87207c9593271bbeac14
md5=ae9395a6a8000bd121779347a4b608aa

doc/bin_prot.shape/Bin_shape_lib/Bin_shape/Canonical/Create/index.html

Module Canonical.Create

val annotate : Uuid.t -> Exp.t -> Exp.t

Create.create defs exp constructs a canonical-shape. The defs give context for sub-expressions of the form: apply n exps; n being a reference to the n'th definition in defs.

Definition are required for records and variants, but may also occurs for any cyclic expression: in this case being constructed using define.

Within a definition body, var i refers to the i'th formal type-var, and corresponds to the i'the argument of an application args.

val basetype : Uuid.t -> Exp.t list -> Exp.t
val tuple : Exp.t list -> Exp.t
val poly_variant : Location.t -> (string * Exp.t option) list -> Exp.t
val var : int -> Exp.t
val apply : Def.t -> Exp.t list -> Exp.t
val recurse : int -> Exp.t list -> Exp.t
val define : Exp.t -> Def.t
val record : (string * Exp.t) list -> Exp.t
val variant : (string * Exp.t list) list -> Exp.t
val create : Exp.t -> t
OCaml

Innovation. Community. Security.