gotoc icon indicating copy to clipboard operation
gotoc copied to clipboard

fails parsing with custom options in messages, enums, ...

Open jozn opened this issue 7 years ago • 2 comments

Hi The project fails at compiling protos with option at messages, enums, services levels. we are trying to do some custom code generating based on our custom options.

https://developers.google.com/protocol-buffers/docs/proto3#options

Some options are message-level options, meaning they should be written inside message definitions. Some options are field-level options, meaning they should be written inside field definitions. Options can also be written on enum types, enum values, service types, and service methods

a proper syntax semantic based on anterl4 grammar is in here :https://github.com/antlr/grammars-v4/blob/master/protobuf3/Protobuf3.g4

If you support this it would be great. Thanks

jozn avatar Jul 30 '17 07:07 jozn

@jozn did you consider using an alternative package https://github.com/emicklei/proto ? ( @dsymonds , i hope you don't mind me mentioning this )

emicklei avatar Aug 03 '17 03:08 emicklei

@emicklei sorry for delayed response, i didn't see it. i defiantly will check it out, thank you.

jozn avatar Aug 10 '17 23:08 jozn