#abnf — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #abnf, aggregated by home.social.
-
Are there any very minimal #flex / #bison like things that will produce a self-contained parser (maybe in a single function, no libraries) for a very small #ABNF or equivalent. #libpcap has grown a slightly complex capture source definition as it moves to mainstream the #rpcap mechanism. It used to be just "eth0" or "de0", but now there are many more things. Probably a superset of URN-syntax.
-
No tool available on the entire Internet that can convert an ABNF grammar to an EBNF grammar. 🤔
-
@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
-
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.
-
Does anyone know what “flavor” of #ABNF / #EBNF this is written in? The table heading says “EBNF,” while the paragraph above references “ABNF,” but it appears to use a format that’s different from what’s defined in RFC 5234 or ISO/IEC 14977:1996.
https://www.unicode.org/reports/tr35/#unicode-locale-identifier
I could make assumptions about some of these characters, but I’d rather be as explicit as possible.
-
Does anyone know what “flavor” of #ABNF / #EBNF this is written in? The table heading says “EBNF,” while the paragraph above references “ABNF,” but it appears to use a format that’s different from what’s defined in RFC 5234 or ISO/IEC 14977:1996.
https://www.unicode.org/reports/tr35/#unicode-locale-identifier
I could make assumptions about some of these characters, but I’d rather be as explicit as possible.
-
Does anyone know what “flavor” of #ABNF / #EBNF this is written in? The table heading says “EBNF,” while the paragraph above references “ABNF,” but it appears to use a format that’s different from what’s defined in RFC 5234 or ISO/IEC 14977:1996.
https://www.unicode.org/reports/tr35/#unicode-locale-identifier
I could make assumptions about some of these characters, but I’d rather be as explicit as possible.
-
Does anyone know what “flavor” of #ABNF / #EBNF this is written in? The table heading says “EBNF,” while the paragraph above references “ABNF,” but it appears to use a format that’s different from what’s defined in RFC 5234 or ISO/IEC 14977:1996.
https://www.unicode.org/reports/tr35/#unicode-locale-identifier
I could make assumptions about some of these characters, but I’d rather be as explicit as possible.
-
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:
Makes cute little UTF-8 diagrams right in your terminal :blobfoxmeltsoblove:
-
#EBNF is a #publicdomain EBNF #parser generator for #Ruby.
EBNF parses EBNF (Extended Backus-Naur Form) and BNF grammars that can be then translated into other forms, like S-Expressions, #ABNF, #HTML, and Ruby code. EBNF supports #PEG/#Packrat operation as well as LL(1) operation.
Website 🔗️: https://github.com/dryruby/ebnf