|
|
|||||||||||||
|
|
What is BNF?
Backus-Naur Form (BNF) is a popular notation for describing the syntax
of context-free grammars. Although there are many variants and extensions
of BNF, it essentially consists of the following notation:
For example, the following production rule is from the JAVA programming language:
if_statement ::= Because of its power and simplicity, Backus-Naur Form is often used to describe the syntax of programming languages, database query languages, and scripting languages. BNF has high familiarity in compiler development communities. There are many variations and extensions of BNF in use today, including Extended Backus-Naur Form (EBNF) and Augmented Backus-Naur Form (ABNF). Although these extensions can themselves be expressed in BNF, they provide additional notation for expressing constructs such as repeating and optional terms.
|
||||||||||||
|
For comments or questions about this site, please contact webmaster@programmar.com Copyright © 1998-2008 NorKen Technologies, Inc. All rights reserved. |
|||||||||||||