astexplorer icon indicating copy to clipboard operation
astexplorer copied to clipboard

[Feature request]: Add Protocol Buffers language support

Open Zzzen opened this issue 4 years ago • 2 comments

I have to say this is an awesome project! Saved me numerous hours of debugging.

I'm wondering if protobuf can be supported too. Since we already have a js parser.

Zzzen avatar Aug 17 '20 11:08 Zzzen

Thank you :slightly_smiling_face:

As long as long as the created AST is a JavaScript, it should be possible. If you want to give it a try I'd be happy to review the PR. Here is a relatively simple PR as an example for introducing a new category: https://github.com/fkling/astexplorer/pull/211

fkling avatar Aug 20 '20 07:08 fkling

I found that parser of protobuf.js may not be the right tool. It's not modularized and has no source location support. I'm gonna try crafting my own parser. 😼

Zzzen avatar Aug 23 '20 06:08 Zzzen