Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull out pure Rust parser into it's own crate #689

Open
xfbs opened this issue Nov 15, 2023 · 0 comments
Open

Pull out pure Rust parser into it's own crate #689

xfbs opened this issue Nov 15, 2023 · 0 comments

Comments

@xfbs
Copy link

xfbs commented Nov 15, 2023

Hey @stepancheg,

Awesome work here!

I would like to use some of this for a project. Basically, I would like to be able to parse protocol buffer files and do some operations on the AST. A few use cases:

  • Doing some validation of protocol buffer files
  • Dome some linting (parsing the AST, and then writing it back out)
  • Displaying information in a user interface (for example, it would be nice to have access to comments)

For context, this work is part of buffrs.

My idea was that it might be possible to pull out the pure Rust parser from protobuf-parse and expose it's internal AST directly — using the FileDescriptor types is not all that useful because they lack things such as line information.

What do you think — if I started doing some work on this, would you support it? I do not want to create any extra work for you, I was just thinking that it might be good to build this in a way that others can use it, too 😄

Cheers,
Patrick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant