C++研究笔记（5）语法描述的格式

1.6 Syntax notation [syntax]

In the syntax notation used in this International Standard, syntactic categories are indicated by italic type, and literal words and characters in constant width type. Alternatives are listed on separate lines except in a few cases where a long set of alternatives is presented on one line, marked by the phrase “one of.” An optional terminal or nonterminal symbol is indicated by the subscript “opt,” so
{ expressionopt }
indicates an optional expression enclosed in braces.

{ expressionopt }

Names for syntactic categories have generally been chosen according to the following rules:

• X-name is a use of an identifier in a context that determines its meaning (e.g. class-name, typedef-name).
某名称 表示通过上下文决定的某个标识符（比如 类名称类型定义名称）。
• X-id is an identifier with no context-dependent meaning (e.g. qualified-id).
某标识 表示上下文无关的标识符（比如 限定标识）。
• X-seq is one or more X's without intervening delimiters (e.g. declaration-seq is a sequence of declarations).
某序列 表示一个或多个无分隔符的某条目（比如 声明序列 是一系列声明）。
• X-list is one or more X's separated by intervening comma (e.g. expression-list is a sequence of expressions separated by commas).
某列表 表示一个或多个被逗号分隔的某条目（比如 表达式列表 是一系列被逗号分隔的表达式）。

• 本文已收录于以下专栏：

举报原因： 您举报文章：C++研究笔记（5）语法描述的格式 色情 政治 抄袭 广告 招聘 骂人 其他 (最多只允许输入30个字)