[protobuf] Re: protoc plugin compiler extension framework

2010-03-01 Thread phelyks
ok, thanks for pointing me to the right directions and your RPC system, that should be helpful. On Feb 27, 12:45 am, Kenton Varda ken...@google.com wrote: Plugins are now mentioned in the docs in several places:

[protobuf] Re: protoc plugin compiler extension framework

2010-02-26 Thread phelyks
i think it would also be very helpful to have some sort of dummy- example-plugin documentation. at the moment i am completely lost how to begin to write the plugin. but i dont want to whine: protobufs other documentation is excellent, so maybe i am just getting too comfortable ;) On Jan 6, 7:01 

Re: [protobuf] Re: protoc plugin compiler extension framework

2010-02-26 Thread Kenton Varda
Plugins are now mentioned in the docs in several places: http://code.google.com/apis/protocolbuffers/docs/reference/other.html http://code.google.com/apis/protocolbuffers/docs/reference/cpp-generated.html#plugins(similarly for java-generated and python-generated)

[protobuf] Re: protoc plugin compiler extension framework

2010-01-06 Thread Chris
Is the plugin framework already part of 2.3.0? I can't find any documentation for this new feature besides some early brainstorming posts. On Dec 22 2009, 7:28 pm, Kenton Varda ken...@google.com wrote: The plugin framework is not meant for this.  Plugins can only insert code at points that have

Re: [protobuf] Re: protoc plugin compiler extension framework

2010-01-06 Thread Kenton Varda
Yes. Sorry, I haven't had a chance to write up formal documentation yet. See these two files: http://code.google.com/p/protobuf/source/browse/trunk/src/google/protobuf/compiler/plugin.proto http://code.google.com/p/protobuf/source/browse/trunk/src/google/protobuf/compiler/plugin.h On Wed, Jan

Re: [protobuf] Re: protoc plugin compiler extension framework

2009-12-22 Thread Henner Zeller
Hi, On Tue, Dec 22, 2009 at 06:42, Christopher Piggott cpigg...@gmail.com wrote: Hmm maybe I can use the UninterpretedOption message to do this. Would something like this work? message ChrisMessage {  option javadoc = This is an object representing Chris's Message;  repeated int32 field1 = 1

Re: [protobuf] Re: protoc plugin compiler extension framework

2009-12-22 Thread Joern Huxhorn
How about using /// for those special line comments? This would prevent accidental field comments. Joern. On 22.12.2009, at 17:12, Henner Zeller wrote: Hi, On Tue, Dec 22, 2009 at 06:42, Christopher Piggott cpigg...@gmail.com wrote: Hmm maybe I can use the UninterpretedOption message to do

Re: [protobuf] Re: protoc plugin compiler extension framework

2009-12-22 Thread Kenton Varda
The plugin framework is not meant for this. Plugins can only insert code at points that have explicitly been declared by the original generator. For example, in Java, the code generator generates one insertion point in each class. So, you can add new methods to a message type, but you cannot

[protobuf] Re: protoc plugin compiler extension framework

2009-12-22 Thread Christopher Piggott
Yeah, I agree with it being cluttered if they were handled as options. I'm still trying to wrap my mind around the plug-ins and whether or not they are useful to my project. If the development team would actually consider something to propagate generated code documentation, one thing to consider