[protobuf] Re: Getting started developing a protoc plugin

2018-11-10 Thread Nadav Samet
Michael, A protoc plugin is a program that receives a serialized CodeGeneratorRequest message via its stdin, and writes a CodeGeneratorResponse to its stdout. You asked where the CodeGeneratorRequest comes from. The answer is that the message is defined here

[protobuf] Spec v2 int-lit snafu?

2018-11-10 Thread Michael Powell
Hello, I think 0 can be a decimal-lit, don't you think? However, the spec reads as follows: intLit = decimalLit | octalLit | hexLit decimalLit = ( "1" … "9" ) { decimalDigit } octalLit = "0" { octalDigit } hexLit = "0" ( "x" | "X" ) hexDigit { hexDigit } Is there a reason,