pest_railroad 0.1.0

Railroad (aka syntax) SVG diagram generator for Pest parsers. It supports most (but not all) Pest grammar rules.
Documentation
  • Coverage
  • 97.1%
    67 out of 69 items documented0 out of 1 items with examples
  • Size
  • Source code size: 39.69 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.6 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 38s Average build duration of successful builds.
  • all releases: 38s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nu11ptr

pest_railroad

Crate Docs

Railroad (aka syntax) SVG diagram generator for pest parsers. It supports most (but not all) Pest grammar rules.

Install

Library crate:

cargo add pest_raiload

The binary:

cargo install pest_railroad_gen

Example

cargo run -- grammars/json.pest > json.svg

This results in:

Status

This does what I need it to, so it is more or less "finished", but may get support for more Pest rules if I need them. Contributions might be accepted as long as they align to my vision for the tool.