[protobuf] Re: EBNF grammar for .proto files

2015-01-02 Thread Walter Schulze
Is this grammar now officially available and supported somewhere? On Sunday, 13 July 2008 09:20:16 UTC+2, Alek Storm wrote: > > Okay, here is the revised grammar. Kenton, can we make this official > somehow? Not just because it's mostly my work (okay, kinda), but because > it's the *reference*

Re: [protobuf] Re: EBNF grammar for .proto files

2013-05-31 Thread Ruffian Eo
Oh yes - thanks! I just noticed myself. [^\s]* would have been what I first understood. I so hate that write-only language they call "Regular expressions". To make it easier to read I propose to rephrase as the more intuitive: ident ::= /[A-Za-z_][A-Za-z0-9_]*/ On Friday, May 31, 2013 4:31:40

Re: [protobuf] Re: EBNF grammar for .proto files

2013-05-31 Thread Stephen Tu
The [\w_]* means to match any sequence of "word" characters or an underscroll (which I believe is redundant). Please see: http://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Regular_expression On Fri, May 31, 2013 at 10:17 AM, Ruffian Eo wrote: > I am not very good with reading regular expres

[protobuf] Re: EBNF grammar for .proto files

2013-05-31 Thread Ruffian Eo
I am not very good with reading regular expressions - so there is a good chance I misunderstood: ident ::= /[A-Za-z_][\w_]*/ The rule above, my brain parses as: A letter or underscore followed by 0..* characters which are not whitespaces. (you may laugh if I misread the expression ;) ) Tryi