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 #20

Open
mingodad opened this issue May 12, 2022 · 0 comments
Open

Grammar railroad diagram #20

mingodad opened this issue May 12, 2022 · 0 comments
Assignees
Labels
docs Improvements or additions to documentation enhancement New feature or request

Comments

@mingodad
Copy link

What happened?

Only an enhancement for documenting/understand the grammar with this tool https://www.bottlecaps.de/convert/ we can convert the tags.pegjs grammar to a format understood by https://www.bottlecaps.de/rr/ui and have a nice railroad diagram (https://en.wikipedia.org/wiki/Syntax_diagram).

Copy https://github.com/markdoc/markdoc/blob/main/src/grammar/tag.pegjs in to https://www.bottlecaps.de/convert/ on the Input grammar: textarea then click the Convert button then click the View Diagram to see the navigable railroad diagram, it can also be generated offline (see https://www.bottlecaps.de/rr/ui Welcome tab at the bottom).

To reproduce

See above

Version

No response

Additional context

No response

@mingodad mingodad added the bug Something isn't working label May 12, 2022
@mfix-stripe mfix-stripe added docs Improvements or additions to documentation and removed bug Something isn't working labels May 12, 2022
@mfix-stripe mfix-stripe added the enhancement New feature or request label May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants