A library to generate syntax diagrams for Rust macros.
A library to generate syntax diagrams for Rust macros.
A browser add-on for Firefox, Chrome and Edge
A library to generate syntax ("railroad") diagrams for Rust's macro_rules!().
Diagrams are generated as Scalable Vector Graphics, with layout-details controlled by customizable CSS.
As an example, given the definition of nom's method
…... the library generates an SVG which renders (using default CSS) as
To generate the examples shown here, run
cargo run --example variouswhich will output some html-files to /examples; Feel free to hack on the demos in /examples/various.rs.
nom-4.1.1 as diagramssyn-0.14 as diagramsbitflags, quickcheck and cfg-if, as diagramsNo open issues yet, or sync has not completed.