package ocaml-protoc

  1. Overview
  2. Docs
Pure OCaml compiler for .proto files

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocaml-protoc-4.1.tbz
sha256=89ea27f87d96fda79fd7a8f86a9e3ac978bdaa9c2ab989442d110123104bed3f
sha512=d5910fa17d60754c0ba273e4fa96137bb1129fbbc235a6601960a1cafb2ef41627b06a6486e539c5b206b73c249fe834ba910b2ce741d5f8ded137f042bbce4d

doc/ocaml-protoc.compiler-lib/Ocaml_protoc_compiler_lib/index.html

Module Ocaml_protoc_compiler_libSource

Sourcemodule Pb_codegen_all : sig ... end

Generate all the code for a given OCaml module.

Sourcemodule Pb_codegen_backend : sig ... end

Compile protobuf typed tree to the OCaml AST.

Sourcemodule Pb_codegen_decode_binary : sig ... end

Code generator for the decode function

Sourcemodule Pb_codegen_decode_bs : sig ... end

Code generator to decode messages from protobuf message options

Sourcemodule Pb_codegen_decode_yojson : sig ... end

Code generator for the decode JSON function

Sourcemodule Pb_codegen_default : sig ... end

Code generator for the default functions (i.e builders)

Sourcemodule Pb_codegen_encode_binary : sig ... end

Code generator for the encode function

Sourcemodule Pb_codegen_encode_bs : sig ... end
Sourcemodule Pb_codegen_encode_yojson : sig ... end

Code generator for the encode JSON function

Sourcemodule Pb_codegen_formatting : sig ... end

Formatting utilities for code generation

Sourcemodule Pb_codegen_make : sig ... end

Code generator for the make functions (i.e builders, but stricter than default)

Sourcemodule Pb_codegen_mode : sig ... end
Sourcemodule Pb_codegen_ocaml_type : sig ... end

OCaml type representation

Plugin that dumps a representation of the parsed proto in comments

Sourcemodule Pb_codegen_plugin : sig ... end

Plugin architecture.

Sourcemodule Pb_codegen_pp : sig ... end

Code generator for the pp function

Sourcemodule Pb_codegen_services : sig ... end
Sourcemodule Pb_codegen_types : sig ... end

Code generator for the OCaml types

Sourcemodule Pb_codegen_util : sig ... end

Common utility functions for OCaml code generation

Sourcemodule Pb_exception : sig ... end

Compiler exception

Sourcemodule Pb_field_type : sig ... end

Protobuffer Field type

Sourcemodule Pb_format_util : sig ... end
Sourcemodule Pb_location : sig ... end

File location utilities

Sourcemodule Pb_logger : sig ... end

Logging functionality allow printing debugging information

Sourcemodule Pb_option : sig ... end

Protobuf File/Message/Field options

Sourcemodule Pb_parsing : sig ... end

Parsing compilation step

Sourcemodule Pb_parsing_lexer : sig ... end
Sourcemodule Pb_parsing_parse_tree : sig ... end

Protobuf parse tree

Sourcemodule Pb_parsing_parser : sig ... end
Sourcemodule Pb_parsing_util : sig ... end

Parse tree utilities

Sourcemodule Pb_raw_option : sig ... end

Protobuf File/Message/Field raw options (i.e. exactly as they parsed)

Sourcemodule Pb_typing : sig ... end

Typing compilation step

Sourcemodule Pb_typing_graph : sig ... end

Graph algorithms to support the recursion analysis

Sourcemodule Pb_typing_recursion : sig ... end

Mutually recursive type resolution

Sourcemodule Pb_typing_resolution : sig ... end

Type resolution.

Sourcemodule Pb_typing_type_tree : sig ... end
Sourcemodule Pb_typing_util : sig ... end

Typed tree utilities

Sourcemodule Pb_typing_validation : sig ... end

Typed tree construction and validation

Sourcemodule Pb_util : sig ... end

Standard library missing functions