package ocaml-protoc

  1. Overview
  2. Docs

Compile protobuf parse tree to the ocaml type

This module focuses on the compilation steps which transforms a fully resolved Protobuf message into an OCaml representation.

After compilation this module also expose code generation functionality.

Compilation

val compile : unsigned_tag:bool -> Pb_field_type.resolved Tt.proto -> Pb_field_type.resolved Tt.proto_type -> Ot.type_ list
module Internal : sig ... end

Internal helpers.

OCaml

Innovation. Community. Security.