I just released pyparsing 3.2.1 with a very cool addition to the railroad diagrams that pyparsing generates for its parsers - non-terminal diagram elements now link to their definitions elsewhere in the diagram! This is pretty handy when the diagram is for a complex parser, as in this demo of a parser/evaluator for time references like "3 weeks from today" or "0800 two days from now" or "in exactly twenty-four hours". #pyparsing #python #parser #railroaddiagram

@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

There is not a single tool on the entire Internet to convert ABNF grammar to railroad diagrams. 🙄

PS: https://github.com/katef/kgt is the only one that claims to do this, but fails on its own example ABNF files.

#ABNF #RailroadDiagram

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