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

Grammar railroad diagram #283

Open
mingodad opened this issue Jul 16, 2022 · 1 comment
Open

Grammar railroad diagram #283

mingodad opened this issue Jul 16, 2022 · 1 comment

Comments

@mingodad
Copy link

Using this tool https://www.bottlecaps.de/convert/ we can have a nice navigable railroad diagram (Syntax diagram) for sql.y.

Copy and paste sql.y on https://www.bottlecaps.de/convert/ Input grammar: textarea and then click the Convert button (with EBNF as target format) then click the View Diagram button to view a nice navigable railroad diagram.

@mingodad
Copy link
Author

I've just added this project grammar to https://mingodad.github.io/parsertl-playground/playground/ (select OctoSQL parser (partially working) under examples then click Parse to see the parser tree for the content of Input source editor).

The main repository is here https://github.com/mingodad/parsertl-playground it's a Yacc/Lex runtime grammar evaluator that can provide quick feedback loop when developing/testing/debug grammars.

It can also generate EBNF compatible with https://www.bottlecaps.de/rr/ui to generate railroad diagrams.

I hope it can help develop/debug/extend/test/document the grammar used in this project.

Any feedback is welcome !

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