Jump to content

Extended Backus–Naur form

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jan Hidders (talk | contribs) at 15:44, 13 August 2002 (from FOLDOC). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

The Extended Backus-Naur Form or BNF is any variation on the basic Backus-Naur Form (BNF) metasyntax notation with (some of) the following additional constructs: square brackets "[..]" surrounding optional items, suffix "*" for Kleene closure (a sequence of zero or more of an item), suffix "+" for one or more of an item, curly brackets enclosing a list of alternatives, and super/subscripts indicating between n and m occurrences.

All these constructs can be expressed in plain BNF using extra productions and have been added for readability and succinctness.


This article (or an earlier version of it) contains material from FOLDOC, used with permission.