一个用于生成 Rust 宏语法图的库。
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 diagrams暂无开放 Issues,或尚未同步最近议题。