[clug] *BNF to diagrams: any suggested tools?

James Ring sjr at jdns.org
Thu Sep 9 13:04:55 UTC 2021


On Wed, Sep 8, 2021 at 11:06 PM steve jenkin via linux
<linux at lists.samba.org> wrote:
>
> Anyone have a favourite command line tool for converting syntax definition files into diagrams?
>
> Wikipedia, "Syntax diagram”, points to multiple tools, some in Javascript.
> I’ve seen other compiler tools requiring Java: lots of overhead for command line.
>         <https://en.wikipedia.org/wiki/Syntax_diagram#External_links>
>
> I found this tool, written in C, on github.
> Compiles and runs, though things like man pages aren’t fully supported.
> Seems to support a reasonable range of input files.
>
>         [Docbook / XML source provided, but the Makefile not configured to build them.]
>
> KGT: Kate's Grammar Tool
>         <https://github.com/katef/kgt>

Way back in my undergraduate days, I used the LaTeX rail package
(https://www.ctan.org/pkg/rail) to generate railroad diagrams from BNF
for a user guide for a language we had written.

> --
> Steve Jenkin, IT Systems and Design
> 0412 786 915 (+61 412 786 915)
> PO Box 38, Kippax ACT 2615, AUSTRALIA
>
> mailto:sjenkin at canb.auug.org.au http://members.tip.net.au/~sjenkin
>
>
> --
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux



More information about the linux mailing list