As a frequent consumer (and dare I say... enjoyer!) of #ABNF I can't believe I hadn't stumbled across this delightful little tool yet:

https://github.com/katef/kgt

Makes cute little UTF-8 diagrams right in your terminal 

GitHub - katef/kgt: BNF wrangling and railroad diagrams

BNF wrangling and railroad diagrams. Contribute to katef/kgt development by creating an account on GitHub.

GitHub

@sethmlarson It seems to fail on most ABNF files. Could you share what ABNF input you provided to get the railroad diagrams you had in the post?

I tried running it on the `examples/abnf.abnf` it ships with and that produced nothing:

kgt -l abnf -e rrtext < examples/abnf.abnf

#ABNF #kgt #RailroadDiagram