Closed GoogleCodeExporter closed 9 years ago
Original comment by alr...@google.com
on 4 Aug 2011 at 6:32
I haven't had enough time to look into all the additions required to source to
treat these as comprehensively as FieldOptions, but the grammar change to
accept the structural syntax at least is simple:
Literal:
name=Name '=' index=(INT | HEX)
('[' enumValueOptions+=EnumValueOption (',' enumValueOptions+=EnumValueOption)* ']')?
';';
EnumValueOption:
BuiltInEnumValueOption | CustomEnumValueOption;
BuiltInEnumValueOption:
name=Name '=' value=ValueRef;
CustomEnumValueOption:
'(' name=QualifiedName ')' '=' value=ValueRef;
...notably there are no built in enum value options.
Original comment by compuwar...@gmail.com
on 4 Aug 2011 at 9:30
r114f404b76a5
Original comment by alr...@google.com
on 8 Aug 2011 at 1:26
Original issue reported on code.google.com by
compuwar...@gmail.com
on 4 Aug 2011 at 3:12