criccomini / proto-schema-parser

A Pure Python Protobuf Parser
MIT License
38 stars 20 forks source link

Any chance to get the option values parsed ? #22

Closed DexterMagnific closed 6 months ago

DexterMagnific commented 7 months ago

Dear developer,

As of current code, option values are returned as plain strings. Do you plan to add parsing to these ?

The format looks like JSON: https://protobuf.dev/reference/protobuf/textformat-spec/#example

It is called Protobuf Text. It is used to write "message instances" of the proto formats.

Currently what I'm doing is using a slightly modified JSON grammar to perform the parsing. Thank you

criccomini commented 6 months ago

The proto-schema-parser library parses proto2 and proto3 IDL files. It is not meant to parse Protobuf's text format, which is a textual way to serialize data.

The protocol buffer Text Format Language specifies a syntax for representation of protobuf data in text form