Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ashwin opened this issue Feb 3, 2024 · 0 comments
Open

Comments

@ashwin
Copy link

ashwin commented Feb 3, 2024

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? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant