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

Option to render token categories as non-terminals in diagrams #1137

Open
AccessViolator opened this issue Feb 29, 2020 · 2 comments
Open

Option to render token categories as non-terminals in diagrams #1137

AccessViolator opened this issue Feb 29, 2020 · 2 comments

Comments

@AccessViolator
Copy link

Diagrams should render token categories as non-terminals and render all the terminals in the categories. If not by default, then at least optionally. Otherwise diagrams aren't really that useful for documentation purpose (and I don't know what other purpose they could be used for).

@bd82
Copy link
Member

bd82 commented Feb 29, 2020

I am not sure if categories should be rendered as none terminals as that may be misleading:

  • They are not grammar rules and have different semantics.

But I agree there should be some way to visualize the possible set of a Token category.

Up for grabs, help wanted 😄

@bd82
Copy link
Member

bd82 commented Aug 10, 2023

The big question is what is even possible to implement using the 3rd party diagrams library

e.g. Does it support dynamically expending diagrams?

Perhaps a simple mitigation would be to expand the terminal tooltip to include a large reg-exp made up of all the possible tokens in the categories?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants