package ocaml-protoc
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Protobuf compiler for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
2.4.0.tar.gz
md5=8a294e86c6202b8ec8016e71d19264cb
sha512=67020bef50b59c6590c1b25d85a75d6e19d6cd37d42b87c94aef798bff51a45f38fe7024b4c67d71c22c13d3f2776bec83acd77794a518f1c4a7eddfc30b6d0b
doc/src/ocaml-protoc.compiler-lib/pb_typing_type_tree.ml.html
Source file pb_typing_type_tree.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110(* The MIT License (MIT) Copyright (c) 2016 Maxime Ransan <maxime.ransan@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *) module Pt = Pb_parsing_parse_tree (** Protobuf typed tree. The typetree type is parametrized to allow for 2 phase compilation. *) type ('a, 'b) field = { field_parsed: 'b Pt.field; field_type: 'a Pb_field_type.t; field_default: Pb_option.constant option; field_options: Pb_option.set; } (** Field definition. {ul {- ['a] is for [unresolved] or [resolved]} {- ['b] is for [field_label] to account for both normal and one of fields.} } *) type 'a oneof_field = ('a, Pt.oneof_field_label) field type 'a message_field = ('a, Pt.message_field_label) field type 'a map_field = { map_name: string; map_number: int; map_key_type: Pb_field_type.map_key_type; map_value_type: 'a Pb_field_type.t; map_options: Pb_option.set; } (** Map definition *) type 'a oneof = { oneof_name: string; oneof_fields: 'a oneof_field list; } (** Oneof definition *) type type_scope = { packages: string list; message_names: string list; } (** Type scope The scope of a type (message or enum) is defined by the package (defined in the top of the proto file as well as the messages above it since a message definition can be nested *) (** item for the message body *) type 'a message_body_content = | Message_field of 'a message_field | Message_oneof_field of 'a oneof | Message_map_field of 'a map_field and 'a message = { extensions: Pt.extension_range list; message_options: Pb_option.set; message_name: string; message_body: 'a message_body_content list; } type enum_value = { enum_value_name: string; enum_value_int: int; } type enum = { enum_name: string; enum_values: enum_value list; enum_options: Pb_option.set; } type 'a proto_type_spec = | Enum of enum | Message of 'a message type 'a proto_type = { scope: type_scope; id: int; file_name: string; file_options: Pb_option.set; spec: 'a proto_type_spec; } type 'a proto = 'a proto_type list
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>