astexplorer
astexplorer copied to clipboard
[Feature request]: Add Protocol Buffers language support
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.
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
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. 😼