allow me to shamelessly crosspost from reddit: As I found the situation about documenting
macro_rules()-syntax not very satisfying, I wrote a library to automatically generate syntax (“railroad”) diagrams directly from code. The obvious target for this is
docs.rs, where it might do some good. I’m now looking for comments if
rust thinks this thing is useful and worth the effort.
A live demo, compiled to WASM, can be found here.