Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alecthomas/protobuf

A Protobuf IDL parser for Go
https://github.com/alecthomas/protobuf

go golang parser protobuf protocol-buffers

Last synced: 17 days ago
JSON representation

A Protobuf IDL parser for Go

Awesome Lists containing this project

README

        

# A Protobuf IDL Parser for Go

This package contains a cleanroom Protobuf IDL source parser for Go using [Participle](https://github.com/alecthomas/participle).

This was extracted from an example within Participle.

## Tests

Conformance tests are pulled from protoc and can be run with `go test ./...`.
You can re-sync the upstream tests by running `make -C testdata`.

Compiler tests are end to end tests comparing generated FileDesciptors
against protoc generated FileDescriptors. The protoc generated
FileDescriptors are located in `compiler/testdata/pb/*.pb` and
source files in `compiler/testdata/*.proto`. Protoc FileDescriptors can be
regenerated with `make -C compiler`