Summary
- RFC 5234, January 2008, documents Augmented BNF for syntax specifications, a notation that "balances compactness and simplicity with reasonable representational power".
- Its introduction records the reason it exists: "in the early days of the Arpanet, each specification contained its own definition of ABNF", including the mail specifications, until the definitions were separated "to permit selective reference".
A grammar copied into every document
Open almost any internet specification and somewhere near the top you will find a page of notation the author did not write. It was copied in — from the mail documents, usually — because there was nowhere else to point.
That is how ABNF spread: not by decree, but by photocopy. Every document that needed to define a syntax pasted in its own definition of the notation, then got on with the actual protocol.
The result was a corpus of grammars that all looked alike for reasons nobody had written down in one place. Two documents could disagree about what * meant, or about whether a rule name was case sensitive, because each carried its own authority.
RFC 5234 does the unglamorous thing standards bodies do when a convention is old enough to be worth the paperwork: it pulls the definition out of the documents, writes it once, and makes it citable. From then on a syntax section can say "ABNF, see RFC 5234" instead of reproducing a page of notation.
That is the whole trick of a thin common layer. Hold only what must be shared — the notation — and leave everything else with the people running the protocol. The document does not govern. It gets cited.
Names that refuse to be distinguished
The first choice is about the grammar's own vocabulary. Rule names start with a letter, continue with letters, digits and hyphens, and the memo states flatly: "Rule names are case insensitive."
That is a decision with consequences. A grammar can write Mailbox in one place and mailbox in another and mean the same rule — convenient for humans, mildly alarming for anyone who has debugged a case-sensitive language.
Section 2.3 extends the same attitude to text inside the grammar. A quoted string with letters "is interpreted as a non-terminal representing the set of combinatorial strings with the contained characters, in the specified order but with any mixture of upper- and lowercase."
In other words, the notation itself encodes the internet's oldest bias: protocol keywords are case-insensitive unless a specification says otherwise. Defaults are policy. Nobody voted on this one. It simply became the water everyone swims in.
Repetition with defaults that surprise
The repetition operator is where ABNF shows its age most clearly. The form is <a>*<b>element, with optional minimum and maximum counts, and the defaults are "0 and infinity".
So *element allows any number including none, 1*element requires at least one, and 3*3element allows exactly three. The notation can express "zero or more" in two characters, which is why it spread.
The same defaults mean a grammar written carelessly will accept the empty string where the author expected something. That has produced more than one interoperability argument, and the notation does nothing to prevent it. A default is a decision made once and inherited by everyone who never noticed it was made.
Comments that let a grammar explain itself
A semicolon starts a comment that runs to the end of the line. It reads like a small convenience, and it is the part that made grammars maintainable: an author can annotate a rule with the reasoning that produced it, in the same artefact a parser implementor reads.
Most of the syntax sections that matter are as much commentary as grammar, and that is only possible because the notation permits the commentary. The rule and the reason travel together, which is the only reason a stranger can pick up a twenty-year-old grammar and not guess wrong.
Why a notation needs a standard
ABNF is not enforced by anything. A specification may use "whatever notation their authors deem useful", and some do. The notation's authority comes from being quoted, which means its real product is agreement: two implementors reading the same grammar reach the same parser.
That is what RFC 5234 protects. Not the notation's elegance, but the fact that everyone reads the same definition of it — and that the definition is short enough to keep reading.
It is a small, unglamorous document, and it has done more for interoperability than most things with a letterhead. The grammar of the internet's grammars is one page, cited by everyone, owned by no one. That is roughly the right shape for a common layer.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






