protobuf-ast-parser 0.1.0

A Protocol Buffers (proto2/proto3) parser that produces a typed AST with comments
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
syntax = "proto3";

package xxx;

service Service {
  option uninterpreted_option = {string_value: ""};

  rpc RPC1 (xxx.Request) returns (xxx.Reply);
  rpc RPC2 (.xxx.Request) returns (xxx.Reply) {}
  rpc RPC3 (.xxx.Request) returns (xxx.Reply) {};
}

message Request {}
message Reply {}