Notation 什么是符号I';我在用电话吗?

Notation 什么是符号I';我在用电话吗?,notation,Notation,我在IBM手册和其他地方(下面的示例)看到的符号是什么 []表示“可选” |表示“选择一个” {}表示“非可选” 因此,上述示例允许: 斯洛默先生 老斯隆 斯洛梅达格 斯洛墨多格先生 还有其他一些 我原以为这是一种巴科斯式的作呕,后来我在谷歌上搜索了一下,感到困惑 (我之所以这样做,是因为我打算使用这些符号[以及其他符号]启用输入,解析它,并执行用户请求的任何操作。因此,虽然严格来说这不是一个编程问题,但它与我打算实现的编程概念有关。如果仍然非法,则可以删除它。)它可能是BNF的不同变体之一,特

我在IBM手册和其他地方(下面的示例)看到的符号是什么

[]
表示“可选”

|
表示“选择一个”

{}
表示“非可选”

因此,上述示例允许: 斯洛默先生 老斯隆 斯洛梅达格 斯洛墨多格先生 还有其他一些

我原以为这是一种巴科斯式的作呕,后来我在谷歌上搜索了一下,感到困惑


(我之所以这样做,是因为我打算使用这些符号[以及其他符号]启用输入,解析它,并执行用户请求的任何操作。因此,虽然严格来说这不是一个编程问题,但它与我打算实现的编程概念有关。如果仍然非法,则可以删除它。)

它可能是BNF的不同变体之一,特别是一种被称为扩展巴科斯诺尔形式的变体。
然而,在这种形式中,
{}
表示重复。

摘自
IBMPL/IforMVS&VM
节目指南
1.1版

How to Read the Notational Symbols
Some of the programming syntax in this book is presented using notational
symbols. This is to maintain consistency with descriptions of the same syntax in
other IBM publications, or to allow the syntax to be shown on single lines within a
table or heading.
 Braces, { }, indicate a choice of entry. Unless an item is underlined, indicating
a default, or the items are enclosed in brackets, you must choose at least one
of the entries.
 Items separated by a single vertical bar, |, are alternative items. You can
select only one of the group of items separated by single vertical bars. (Double
vertical bars, ||, specify a concatenation operation, not alternative items. See
the PL/I for MVS & VM Language Reference for more information on double
vertical bars.)
 Anything enclosed in brackets, [ ], is optional. If the items are vertically
stacked within the brackets, you can specify only one item.

事情还在继续。可能“名称”是“IBM符号语法”。这在当时和现在对我都有效。

哦。那么我要制定自己的规则了?你看过IBM的手册吗。。。我不知道……”60年代到80年代?他们没有使用我想我自己编的符号吗?是的,我在70年学习过,甚至超过了IBM手册,他们使用了这种符号(重复)。当时编程语言的语法是这样给出的,但是有不同的变体。IBM真的找到了手册。这个符号清楚地说明了什么是法律语法。我并没有声称研究过“官方”Backus Naur,但我想这就是
xml
语法定义的基础,或者说是某种变体。(?) ... 我多么希望我的专业是CS而不是数学……事实上,XML是从SGML派生出来的,SGML是从IBM GML(通用标记语言)派生出来的,这使得XML的历史很短。但我认为这是BNF的一个侧面发展。然而,标记文档的DTD(文档类型定义)显然是由BNF的另一个变体给出的。
How to Read the Notational Symbols
Some of the programming syntax in this book is presented using notational
symbols. This is to maintain consistency with descriptions of the same syntax in
other IBM publications, or to allow the syntax to be shown on single lines within a
table or heading.
 Braces, { }, indicate a choice of entry. Unless an item is underlined, indicating
a default, or the items are enclosed in brackets, you must choose at least one
of the entries.
 Items separated by a single vertical bar, |, are alternative items. You can
select only one of the group of items separated by single vertical bars. (Double
vertical bars, ||, specify a concatenation operation, not alternative items. See
the PL/I for MVS & VM Language Reference for more information on double
vertical bars.)
 Anything enclosed in brackets, [ ], is optional. If the items are vertically
stacked within the brackets, you can specify only one item.