-
Notifications
You must be signed in to change notification settings - Fork 32
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
nimbleparse:Suggestions for outputting information #448
Comments
This is something i've been curious about doing, but hasn't been a priority for me. Somewhat related, nimbleparse_lsp can generate railroad diagrams, and display them within vscode, In theory we wouldn't need the additional dependency if we're just generating "dot" formatted text output though. |
I got the nimbleparse_lsp, should put it in the document, otherwise it's difficult to realize its existence |
I like the idea of having a "grammar -> " tool. I vaguely envisaged nimbleparse as something very simple, but I guess it could grow things like dot output without imposing any complexity on other cases? If so, I'd be all for it! |
For railroad diagrams, it would basically be just option parsing affecting the main program, with an additional function where the added complexity can be isolated within it. I don't think dot support would differ from that. I don't think it is certain that nimbleparse is the right tool/place for this feature though. But for outputting diagrams actual input text seems like it should be entirely ignored/superfluous. I would think that a tool for outputting grammar diagrams could get away with taking an output format, So I do think there is a little bit of command line option awkwardness here. |
Perhaps lrpar should gain a binary |
The nimbleparse outputting info format maybe add "dot" format for Display in the form of a graph using graphviz
For example:
The text was updated successfully, but these errors were encountered: