Closed GoogleCodeExporter closed 9 years ago
Here is what I believe to be a complete syntax for a String Formatted Protocol
Buffer option. Notably this include no content validation, just structural.
I have not yet tested this addition / mod to the grammar:
ValueRef:
ProtobufStringSerializedFormRef | LiteralRef | BooleanRef | NumberRef | StringRef | Nan;
ProtobufStringSerializedFormRef:
protobufstring=ProtobufStringSerializedForm:
ProtobufStringSerializedForm:
'{'
(
message+=MessageFieldSerializedForm
|
enumeration+=EnumFieldSerializedForm
|
direct+=DirectFieldSerializedForm
)+
'}';
DirectFieldSerializedForm:
( (QualifiedName | '[' QualifiedName ']' )
':' ValueRef);
EnumFieldSerializedForm:
( (QualifiedName | '[' QualifiedName ']' )
':' ID);
MessageFieldSerializedForm:
( (QualifiedName | '[' QualifiedName ']' )
':' ProtobufStringSerializedForm);
Original comment by compuwar...@gmail.com
on 4 Aug 2011 at 3:36
Original comment by alr...@google.com
on 4 Aug 2011 at 6:32
This is the last defect keeping my team from switching over to the plugin from
ours. Has anyway else had a chance to think on it?
I had trouble getting the grammar statements above to mesh with the existing
grammar
Original comment by compuwar...@gmail.com
on 16 Aug 2011 at 2:02
I haven't had the chance to work on this issue yet. I'll try my best to work on
this next week. Hopefully by the end of the week we'll have a fix :)
Once again, thanks for reporting this issue, and for offering a solution!
Original comment by alr...@google.com
on 16 Aug 2011 at 3:29
r7e20ea18d7b6
The fix only includes syntax for options of type Message, based on the given
example. Semantic checks will be added once custom options are supported.
Original comment by alr...@google.com
on 19 Aug 2011 at 9:26
Original issue reported on code.google.com by
compuwar...@gmail.com
on 4 Aug 2011 at 3:25