pyrobuf
pyrobuf copied to clipboard
Implement rudimentary "reserved" field support
This implementation does not validate that the field names and/or numbers are not reused; it simply ignores them. This allows parsing files that contain the reserved
keyword.
Thanks! Looks pretty good but...
- We should add a test
- I think this only partially works, based on the example in the language guide:
message Foo {
reserved 2, 15, 9 to 11;
reserved "foo", "bar";
}
As is, something like reserved 2, 15
will work, but this will fail for 9 to 11
or "foo", "bar"
.