msoucy / dproto

D Protocol Buffer mixins to create structures at compile time
Boost Software License 1.0
37 stars 16 forks source link

Better parse proto3 fields. #124

Closed redstar closed 7 years ago

redstar commented 7 years ago

A difference between proto2 and proto3 is that with proto3 there is only the optional 'repeated' field label. proto2 requires exactly one field label. With this PR the parser now remembers the syntax version and handles this difference better. proto2 is still the default.

redstar commented 7 years ago

With this PR, most of the Hyperledger Fabric protos (https://github.com/hyperledger/fabric/tree/release/protos) are parseable. :-)