Backus Naur Form (BNF)
BNF is a notation used to describe the syntax of programming languages or other formal languages.
BNF can be described as a metasyntax notation for context-free grammars.
A BNF specification is a set of derivation rules, written as
1<symbol> ::= __expression__where:
<symbol>is a nonterminal variable, always enclosed in<>::=means that the symbol on the left must be replaced with the expression on the right.__expression__consists of one or more sequences of either terminal or nonterminal symbols where each sequence is separated by a vertical bar|indicating a choice, the whole being a possible substitution for the symbol on the left.- terminal symbols are characters enclosed in
""and are meant to be used literally
References
#syntax #grammar #naur #code #form #backus #notation #theory #computer_science #programming