protobuflab / protobuf-langserver

MIT License
0 stars 1 forks source link

Get a SyntaxTree from a .proto file #1

Open NTaylorMullen opened 5 years ago

NTaylorMullen commented 5 years ago

Given a .proto file we need to be able to get some sort of introspectable syntax tree from it.

shirhatti commented 5 years ago

There are two possible approaches I see here.

  1. The quick and dirty approach is to invoke protoc, which in turn invokes our plugin. We can then hack together some out of process communication between our plugin (perhaps make an Http request?) that gives you an AST.
  2. The other approach is write a thin managed wrapper over the native libprotoc and use it directly in process.

Thoughts?