home.social

#abnf — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #abnf, aggregated by home.social.

  1. 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.

  2. No tool available on the entire Internet that can convert an ABNF grammar to an EBNF grammar. 🤔

    #ABNF #EBNF

  3. @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

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

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

    #ABNF #RailroadDiagram

  5. 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.

    unicode.org/reports/tr35/#unic

    I could make assumptions about some of these characters, but I’d rather be as explicit as possible.

    #Unicode #CLDR #LDML #TR35

  6. 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.

    unicode.org/reports/tr35/#unic

    I could make assumptions about some of these characters, but I’d rather be as explicit as possible.

    #Unicode #CLDR #LDML #TR35

  7. 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.

    unicode.org/reports/tr35/#unic

    I could make assumptions about some of these characters, but I’d rather be as explicit as possible.

    #Unicode #CLDR #LDML #TR35

  8. 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.

    unicode.org/reports/tr35/#unic

    I could make assumptions about some of these characters, but I’d rather be as explicit as possible.

    #Unicode #CLDR #LDML #TR35

  9. As a frequent consumer (and dare I say... enjoyer!) of I can't believe I hadn't stumbled across this delightful little tool yet:

    github.com/katef/kgt

    Makes cute little UTF-8 diagrams right in your terminal :blobfoxmeltsoblove:

  10. is a EBNF generator for .

    EBNF parses EBNF (Extended Backus-Naur Form) and BNF grammars that can be then translated into other forms, like S-Expressions, , , and Ruby code. EBNF supports /#Packrat operation as well as LL(1) operation.

    Website 🔗️: github.com/dryruby/ebnf