3 ms·
IMHO ABNF is just as annoying to read, especially its insistence on '/' instead of '|' for alternation (when | has universally become the "OR" symbol in other l
by userbinator 1y ago
IMHO ABNF is just as annoying to read, especially its insistence on '/' instead of '|' for alternation (when | has universally become the "OR" symbol in other languages) and "%x" for hex prefixes. My preference for syntax descriptions is [ ] for "optional", ",,," or "+" for "1 or more", "*" for "0 or more", and "{min,max}" or "{n}" for repetition ranges, which closely mirrors regex syntax; I'm not sure if this has been standardised or even has a name, but I've seen it far more often than ABNF/EBNF.
- Pet_Ant 1y agoFirst thing I noticed was > rule = definition; comment CR LF ...so it uses CR/LF as a line terminator as opposed to just LF like POSIX does so you are gonna have text editors and other tools just breaking the format on save.