BNF

views updated Jun 08 2018

BNF Abbrev. for Backus normal form, Backus–Naur form. The first widely used formal notation for describing the syntax of a programming language; it was invented by John Backus. BNF was introduced as a defining mechanism in the Algol 60 Report (editor Peter Naur) to describe the syntax of Algol 60. BNF is capable of describing any context-free language, and variants of it are still in use today.

A BNF grammar consists of a number of production rules, which define syntactic categories in terms of other syntactic categories, and of the terminal symbols of the language. Examples are shown in the diagram. The name of the syntactic category that is being defined is placed on the left, its definition on the right; the two are separated by the symbol ::=, read as “is defined to be”. The names of syntactic categories are enclosed by angle brackets. The symbol | is read as “or”.

See also extended BNF.

BNF

views updated Jun 27 2018

BNF Computing Backus-Naur (or Backus normal) form
• Pharmacol. British National Formulary
• (or BNFL) British Nuclear Fuels (Limited)
• British Nutrition Foundation

BNF

views updated May 23 2018

BNF British Nutrition Foundation; web site www.nutrition.org.uk.

More From encyclopedia.com