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

Railroad diagrams could optionally exclude unused imported rules #1418

Open
RGHenderson opened this issue Mar 14, 2024 · 0 comments
Open

Railroad diagrams could optionally exclude unused imported rules #1418

RGHenderson opened this issue Mar 14, 2024 · 0 comments
Labels
railroad Syntax diagram relate issue

Comments

@RGHenderson
Copy link

In the following example, the type.langium is only imported to be used in a reference. The inclusion of all grammar rules from the imported langium grammar in larger examples can lead to massive, difficult to follow railroad diagrams (especially in languages with sprawling references to many other metamodels, which langium deals incredibly well with).

In a dream scenario, an extension to the railroad diagram concept might include references in some more visible way, but at least allowing filtering of unused grammar rules would leave a cleaner (opinionated...) view of the raw syntax.

image

@spoenemann spoenemann added the railroad Syntax diagram relate issue label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
railroad Syntax diagram relate issue
Projects
None yet
Development

No branches or pull requests

2 participants