Skip to content

nu11ptr/pest_railroad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

JSON syntax diagram

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.

About

Syntax diagram generator for pest parsers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages