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

Generating a Treesitter grammar #132

Open
vito opened this issue Oct 7, 2023 · 0 comments
Open

Generating a Treesitter grammar #132

vito opened this issue Oct 7, 2023 · 0 comments

Comments

@vito
Copy link

vito commented Oct 7, 2023

Hiya! First some maybe unnecessary context: I'm working on a language as a side project, and I need to aggressively limit scope. I already need a Treesitter grammar for editor support, so I aimed to codegen the tedious parts of parsing from it, thinking that'd be a nifty/useful tool for others. It quickly turned into a quagmire. At this point it seems easier to just maintain the Treesitter grammar alongside a PEG. Maybe I'll just nail the syntax the first time!

And then it occurred to me that it should be much easier going the other way around (generating a TS grammar from a PEG). I might take a swing at this myself, but I wanted to log an issue to gauge interest/concerns.

Thanks for maintaining Pigeon - I've been happily using it for years. Cool to see #123 land too!

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