Thanks Kenton!
It seems to be just what I need. Though I will need some code to read
those descriptors.
Actually I'm trying to use Protocol Buffers with PHP. Project pb4php
even have its tests failing and does not seem to be supported by its
author.
Kind regards,
Kirill Zaborsky
2010/5/21 Kenton Varda ken...@google.com:
It looks like Nicholaus got mixed up and thought you were a Google employee.
I do that sometimes -- it's hard to keep track of all the different mailing
lists. :/
Why do you need the BNF of the .proto language? Most of the use cases for
this are covered by one of the following:
1) C++ apps can use the official parser implementation provided by
libprotoc.
2) If you are trying to write your own protobuf implementation, e.g. for a
different programming language, you can write it as a protoc plugin. This
way, protoc still handles parsing the .proto, and all you have to do is
generate code.
3) You can use protoc's --descriptor_set_out flag to compile a set of
.proto files into a single FileDescriptorSet file, which can then be read in
any language that supports protocol buffers (it's just a protobuf itself,
defined in google/protobuf/descriptor.proto).
On Thu, May 20, 2010 at 10:02 PM, Kirill Zaborsky qri...@gmail.com wrote:
How is it possible to access your code? Given address does not appear
to be a valid public URL.
Kind regards,
Kirill Zaborsky
2010/5/21 Nicholaus Shupe nsh...@google.com:
See this code and its unit tests:
http://s/?file=//depot/google3/java/com/google/hr/db/server/proto
for an example of how I've used it.
On Thu, May 20, 2010 at 5:54 PM, Nicholaus Shupe nsh...@google.com
wrote:
You technically don't need it since you can use the protocol buffer
reflection API to get at whatever information you need.
-- Nic
On Thu, May 20, 2010 at 12:03 PM, qrilka qri...@gmail.com wrote:
Is there any formal *.proto file format specification?
http://code.google.com/apis/protocolbuffers/docs/proto.html doesn't
seem to be strict enough.
Something like BNF would be very great.
Kind regards,
Kirill Zaborsky
--
You received this message because you are subscribed to the Google
Groups
Protocol Buffers group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.
--
Nicholaus Shupe - Software Engineer - Google
--
Nicholaus Shupe - Software Engineer - Google
--
You received this message because you are subscribed to the Google Groups
Protocol Buffers group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.
--
You received this message because you are subscribed to the Google Groups
Protocol Buffers group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.