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
Documentation generator for LALRPOP ( markdown, railroad diagram svg, ebnf ) #658
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Darach Ennis <darach@gmail.com>
Here's a repo with the example |
Nods to @brendanzab - liking fathom 👀 👍 |
Signed-off-by: Darach Ennis <darach@gmail.com>
Signed-off-by: Darach Ennis <darach@gmail.com>
Signed-off-by: Darach Ennis <darach@gmail.com>
Signed-off-by: Darach Ennis <darach@gmail.com>
Heh, glad you are enjoying it! Just a heads up that the active repo is at yeslogic/fathom 😊 |
Signed-off-by: Darach Ennis <darach@gmail.com>
Signed-off-by: Darach Ennis <darach@gmail.com>
This has worked well for documentation on the current release of tremor. The full generated docset for the tremor lalrpop grammar is now live here deployed with docusaurus v2 beta. |
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
Signed-off-by: Darach Ennis <darach@gmail.com>
Make image markup in generated markup support a switchable style
Use markdown images by default with switchable alternative back to html `img` tags
👋 Wondering if this branch is ok to merge or if there are related docs changes desireable for completeness. We've had no issues in our CI/CD system with this to date. Please let us know if there's anything we can/should clean up! |
We use LALRPOP on the tremor project for
defining the grammar of our embedded DSLs. Up until the current release, we have been maintaining
a proximate EBNF file and using online railroad diagram generators to assist with our language reference.
This has proven cumbersome, error prone and high maintenance!
This PR is a work in progress extension to LALRPOP that derives EBNF from the LALRPOP grammar, generates
railroad diagrams with support for LALRPOP macro rules visually, and generates markdown for the grammar
that is compatible with github markdown, pandoc, docusaurus.
The markdown can be annotated with human-maintained markdown files.
A few small changes to the core
lalrpop
package is needed to expose the parse tree such thatthe grammar can be visited. If changes come to mind to align it better with the other LALRPOP crates
happy to make any such changes.
The same pic-args, session, config and api pattern was used with the
lalrpop-docgen
tool but thistool hasn't yet been tested with or integrated with
build.rs
style usage.Signed-off-by: Darach Ennis darach@gmail.com