Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cannot generate railroad diagrams for ABNF files from the examples #68

@ashwin

Description

@ashwin

I tried to generate railroad diagram for the TOML file format's ABNF grammar and it failed silently:

$ kgt -l abnf -e rrtext < toml.abnf

There are 5 ABNF example files that ship with kgt:

$ ls -1 examples/*.abnf
examples/abnf.abnf
examples/datetime.abnf
examples/irc.abnf
examples/postal.abnf
examples/utf8.abnf

kgt is able to generate railroad diagrams only for 2 of them. The following 3 ABNF files do not product any output:

$ kgt -l abnf -e rrtext < examples/abnf.abnf
$ kgt -l abnf -e rrtext < examples/irc.abnf
$ kgt -l abnf -e rrtext < examples/postal.abnf

What am I doing wrong? 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions