| Crates.io | render_regex |
| lib.rs | render_regex |
| version | 0.0.0 |
| created_at | 2025-08-02 22:17:30.536739+00 |
| updated_at | 2025-08-02 22:17:30.536739+00 |
| description | SVG visualization of regex DFAs. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1779161 |
| size | 103,183 |
render_regex is a static SVG rendering tool that visually represents the internal structure of a regular expression using the rusty_regex engine.
It supports visualizing:
Each visual stage is cleanly drawn as a *.svg and can be styled and laid out flexibly.
cargo run -p render_regex -- '
You must either specify one stage or render all of them:
--stage <dfa|nfa|ast>--allast, nfa, dfa)--layout <circle|tree|layeredbfs|forcedirected|radial>Defaults per stage:
โข AST โtree
โข NFA โlayeredbfs
โข DFA โlayeredbfs
--output <filename.svg>--stage)--output-dir <dir>output/)--slug <text>--quiet--print-pathscargo run -p render_regex -- 'a(b|c)*d'
cargo run -p render_regex -- 'a(b|c)*d' --stage dfa --layout layeredbfs
cargo run -p render_regex -- 'xyz' --stage ast --output diagram.svg
cargo run -p render_regex -- 'abc*' --all --output-dir ./my_diagrams
cargo run -p render_regex -- 'a(b|c)*d' --slug myregex
cargo run -p render_regex -- 'a(b|c)*d' --quiet --print-paths