Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Grammar railroad diagram #2268

Closed
mingodad opened this issue May 16, 2023 · 5 comments
Closed

Grammar railroad diagram #2268

mingodad opened this issue May 16, 2023 · 5 comments

Comments

@mingodad
Copy link

I started a small attempt to generate an EBNF compatible with https://bottlecaps.de/rr/ui to be generated from the grammar.json you can see/play with it here https://meimporta.eu/tree-sitter/json2ebnf.html .

It already does a good job on most grammars but it can still be improved and any feedback is welcome.

You can choose any of the grammars listed in https://github.com/tree-sitter/tree-sitter/blob/master/docs/index.md through the select element or enter the url to the raw grammar.json to get it converted.

Cheers !

@mingodad
Copy link
Author

The mentioned HTML page is self contained and also I have it here https://github.com/mingodad/plgh/blob/main/json2ebnf.html just in case someone want to contribute any pull request.

This was referenced May 16, 2023
@ambroisie
Copy link

This is spam.

@mingodad
Copy link
Author

mingodad commented May 16, 2023

Not really as I commented here mskelton/tree-sitter-mql5#11 (comment) .
I'm trying to make grammar writers aware of the utility of railroad diagrams.

@ambroisie
Copy link

You just sent the exact same comment to over 25 repositories.

I understand being enthusiastic about your project, but this is not good behaviour. Just open an issue with tree-sitter iteself (this very one) and talk about the feature here, rather that in 1001 different places.

@mingodad
Copy link
Author

Thanks for your feedback !

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants