8000 fails parsing with custom options in messages, enums, ... · Issue #5 · dsymonds/gotoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jozn opened this issue Jul 30, 2017 · 2 comments
Open

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

jozn opened this issue Jul 30, 2017 · 2 comments

Comments

@jozn
Copy link
jozn commented Jul 30, 2017

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

@emicklei
Copy link
emicklei commented Aug 3, 2017

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

@jozn
Copy link
Author
jozn commented Aug 10, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0