请输入您要查询的字词:

 

单词 BNF
释义
BNF

Computer
  • 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, 1928–2016) 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

    BNF. Production rules of a BNF grammar


随便看

 

科学参考收录了60776条科技类词条,基本涵盖了常见科技类参考文献及英语词汇的翻译,是科学学习和研究的有利工具。

 

Copyright © 2000-2023 Sciref.net All Rights Reserved
京ICP备2021023879号 更新时间:2024/6/28 13:08:22