FreeBSD.software
Home/graphics/py311-railroad-diagrams

py311-railroad-diagrams

3.0.1_1graphics

Generate SVG railroad syntax diagrams, like on JSON.org

Railroad-diagram Generator is a small library for generating railroad diagrams (like what JSON.org uses) using SVG, with both JS and Python ports. Railroad diagrams are a way of visually representing a grammar in a form that is more readable than using regular expressions or BNF. They can easily represent any context-free grammar, and some more powerful grammars. There are several railroad-diagram generators out there, but none of them had the visual appeal I wanted, so I wrote my own.

$pkg install py311-railroad-diagrams
github.com/tabatkins/railroad-diagrams
Origin
graphics/py-railroad-diagrams
Size
239KiB
License
MIT
Maintainer
sunpoet@FreeBSD.org
Dependencies
1 packages
Required by
0 packages

Dependencies (1)