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

Easier/cleaner way to write tree-sitter grammar #118

Open
mingodad opened this issue Sep 3, 2024 · 2 comments
Open

Easier/cleaner way to write tree-sitter grammar #118

mingodad opened this issue Sep 3, 2024 · 2 comments

Comments

@mingodad
Copy link

mingodad commented Sep 3, 2024

Describe the feature

Here https://mingodad.github.io/lua-wasm-playground/ there is an easier/cleaner way to write tree-sitter grammars like V (select Tree-sitter-ebnf-generator-V from Examples then click Run to see a full commented out grammar.js from the EBNF variant describng the grammar in Input Text (arg[1])).

I hope it can be helpful !

Use Case

Less work and better communication of the intent.

Other Information

No response

@prashanth-hegde
Copy link

Unfortunately, this repo has been archived for three years.
https://github.com/eatkins/tree-sitter-ebnf-generator

While it may serve us to tweak the grammar once-a-while, for a long-running and continuous development like V, we need a sustainable and well supported toolchain in order to rely upon the solutions

@mingodad
Copy link
Author

The code isn't big and I already did several fixes to it but a real parser would be better.
It for sure proved the point that having a declarative way to describe grammars is superior in my opinion.

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

2 participants