| Index: > A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
|
|||||
| First Prev [ 1 2 ] Next Last |
BNF was originally named after John Backus and later (at the suggestion of Donald Knuth) also after Peter Naur, two pioneers in computer science, namely in the art of compiler design, as part of creating the rules for Algol 60.
A BNF specification is a set of derivation rules , written as
where < symbol> is a nonterminal , and the expressionAn expression combines numbers, operators, and/or variables. Expressions may be evaluated to values, and may be said to represent those values. The evaluation of an expression is dependent on the definition of the mathematical operators and system of valu consists of sequences of symbols and/or sequences separated by the vertical barVertical bar 'Verticon', or pipe is the name of the ASCII character at position 124 (decimal). The character is depicted as either a solid vertical bar or a vertical bar with a break in the middle (broken bar ). The character is usually depicted as a brok, '|', indicating a choice, the whole being a possible substitutionIn general, substitution is the replacement of one thing with another. There are many specific examples: In organic chemistry, a reaction where one functional group takes the place of another. A major type of substitution is nucleophilic substitution. for the symbol on the left. Symbols that never appear on a left side are terminalThe term Terminal can be used in several way and includes various topics: Usually terminal means forming or pertaining to an end. In Computing, it refers to an electronic or electromechanical hardware device. See Computer terminal. In Telecommunication, ts. Symbols inside brackets [] are optional.
As an example, consider this BNF for a USThe United States of America also referred to as the United States U. America č or the States is a federal republic in central North America, stretching from the Atlantic in the east to the Pacific Ocean in the west. It shares land borders with Canada in postal address :