@@ -183,139 +183,139 @@ make the same change here also.
183
183
>
184
184
> * 正则表达式扩展分隔符* → ** ` # ` ** * 正则表达式扩展分隔符* 可选
185
185
186
- > Grammar of operators:
186
+ > 运算符的语法:
187
187
>
188
- > * operator * → * operator-head * * operator-characters * 可选 \
189
- > * operator * → * dot-operator-head * * dot-operator-characters *
188
+ > * 运算符 * → * 运算符头 * * 运算符字符集 * 可选 \
189
+ > * 运算符 * → * 点运算符头 * * 点运算符字符集 *
190
190
>
191
- > * operator-head * → ** ` / ` ** | ** ` = ` ** | ** ` - ` ** | ** ` + ` ** | ** ` ! ` ** | ** ` * ` ** | ** ` % ` ** | ** ` < ` ** | ** ` > ` ** | ** ` & ` ** | ** ` | ` ** | ** ` ^ ` ** | ** ` ~ ` ** | ** ` ? ` ** \
192
- > * operator-head * → U+00A1–U+00A7 \
193
- > * operator-head * → U+00A9 or U+00AB \
194
- > * operator-head * → U+00AC or U+00AE \
195
- > * operator-head * → U+00B0–U+00B1 \
196
- > * operator-head * → U+00B6, U+00BB, U+00BF, U+00D7, or U+00F7 \
197
- > * operator-head * → U+2016–U+2017 \
198
- > * operator-head * → U+2020–U+2027 \
199
- > * operator-head * → U+2030–U+203E \
200
- > * operator-head * → U+2041–U+2053 \
201
- > * operator-head * → U+2055–U+205E \
202
- > * operator-head * → U+2190–U+23FF \
203
- > * operator-head * → U+2500–U+2775 \
204
- > * operator-head * → U+2794–U+2BFF \
205
- > * operator-head * → U+2E00–U+2E7F \
206
- > * operator-head * → U+3001–U+3003 \
207
- > * operator-head * → U+3008–U+3020 \
208
- > * operator-head * → U+3030
191
+ > * 运算符头 * → ** ` / ` ** | ** ` = ` ** | ** ` - ` ** | ** ` + ` ** | ** ` ! ` ** | ** ` * ` ** | ** ` % ` ** | ** ` < ` ** | ** ` > ` ** | ** ` & ` ** | ** ` | ` ** | ** ` ^ ` ** | ** ` ~ ` ** | ** ` ? ` ** \
192
+ > * 运算符头 * → U+00A1–U+00A7 \
193
+ > * 运算符头 * → U+00A9 或 U+00AB \
194
+ > * 运算符头 * → U+00AC 或 U+00AE \
195
+ > * 运算符头 * → U+00B0–U+00B1 \
196
+ > * 运算符头 * → U+00B6、 U+00BB、 U+00BF、 U+00D7 或 U+00F7 \
197
+ > * 运算符头 * → U+2016–U+2017 \
198
+ > * 运算符头 * → U+2020–U+2027 \
199
+ > * 运算符头 * → U+2030–U+203E \
200
+ > * 运算符头 * → U+2041–U+2053 \
201
+ > * 运算符头 * → U+2055–U+205E \
202
+ > * 运算符头 * → U+2190–U+23FF \
203
+ > * 运算符头 * → U+2500–U+2775 \
204
+ > * 运算符头 * → U+2794–U+2BFF \
205
+ > * 运算符头 * → U+2E00–U+2E7F \
206
+ > * 运算符头 * → U+3001–U+3003 \
207
+ > * 运算符头 * → U+3008–U+3020 \
208
+ > * 运算符头 * → U+3030
209
209
>
210
- > * operator-character * → * operator-head * \
211
- > * operator-character * → U+0300–U+036F \
212
- > * operator-character * → U+1DC0–U+1DFF \
213
- > * operator-character * → U+20D0–U+20FF \
214
- > * operator-character * → U+FE00–U+FE0F \
215
- > * operator-character * → U+FE20–U+FE2F \
216
- > * operator-character * → U+E0100–U+E01EF \
217
- > * operator-characters * → * operator-character * * operator-characters * 可选
210
+ > * 运算符字符 * → * 运算符头 * \
211
+ > * 运算符字符 * → U+0300–U+036F \
212
+ > * 运算符字符 * → U+1DC0–U+1DFF \
213
+ > * 运算符字符 * → U+20D0–U+20FF \
214
+ > * 运算符字符 * → U+FE00–U+FE0F \
215
+ > * 运算符字符 * → U+FE20–U+FE2F \
216
+ > * 运算符字符 * → U+E0100–U+E01EF \
217
+ > * 运算符字符集 * → * 运算符字符 * * 运算符字符集 * 可选
218
218
>
219
- > * dot-operator-head * → ** ` . ` ** \
220
- > * dot-operator-character * → ** ` . ` ** | * operator-character * \
221
- > * dot-operator-characters * → * dot-operator-character * * dot-operator-characters * 可选
219
+ > * 点运算符头 * → ** ` . ` ** \
220
+ > * 点运算符字符 * → ** ` . ` ** | * 运算符字符 * \
221
+ > * 点运算符字符集 * → * 点运算符字符 * * 点运算符字符集 * 可选
222
222
>
223
- > * infix-operator * → * operator * \
224
- > * prefix-operator * → * operator * \
225
- > * postfix-operator * → * operator *
223
+ > * 中缀运算符 * → * 运算符 * \
224
+ > * 前缀运算符 * → * 运算符 * \
225
+ > * 后缀运算符 * → * 运算符 *
226
226
227
- ## Types
227
+ ## 类型
228
228
229
- > Grammar of a type:
229
+ > 类型的语法:
230
230
>
231
- > * type * → * function-type * \
232
- > * type * → * array-type * \
233
- > * type * → * dictionary-type * \
234
- > * type * → * type-identifier * \
235
- > * type * → * tuple-type * \
236
- > * type * → * optional-type * \
237
- > * type * → * implicitly-unwrapped-optional-type * \
238
- > * type * → * protocol-composition-type * \
239
- > * type * → * opaque-type * \
240
- > * type * → * metatype-type * \
241
- > * type * → * any-type * \
242
- > * type * → * self-type * \
243
- > * type * → ** ` ( ` ** * type* ** ` ) ` **
231
+ > * 类型 * → * 函数类型 * \
232
+ > * 类型 * → * 数组类型 * \
233
+ > * 类型 * → * 字典类型 * \
234
+ > * 类型 * → * 类型标识符 * \
235
+ > * 类型 * → * 元组类型 * \
236
+ > * 类型 * → * 可选类型 * \
237
+ > * 类型 * → * 隐式解析可选类型 * \
238
+ > * 类型 * → * 协议合成类型 * \
239
+ > * 类型 * → * 不透明类型 * \
240
+ > * 类型 * → * 元类型 * \
241
+ > * 类型 * → * 任意类型 * \
242
+ > * 类型 * → * 自身类型 * \
243
+ > * 类型 * → ** ` ( ` ** * type* ** ` ) ` **
244
244
245
- > Grammar of a type annotation:
245
+ > 类型注释的语法:
246
246
>
247
- > * type-annotation * → ** ` : ` ** * attributes * 可选 ** ` inout ` ** 可选 * type *
247
+ > * 类型注释 * → ** ` : ` ** * 属性(Attributes) * 可选 ** ` inout ` ** 可选 * 类型 *
248
248
249
- > Grammar of a type identifier:
249
+ > 类型标识符的语法:
250
250
>
251
- > * type-identifier * → * type-name * * generic-argument-clause * 可选 | * type-name * * generic-argument-clause * 可选 ** ` . ` ** * type-identifier * \
252
- > * type-name * → * identifier *
251
+ > * 类型标识符 * → * 类型名称 * * 泛型参数子句 * 可选 | * 类型名称 * * 泛型参数子句 * 可选 ** ` . ` ** * 类型标识符 * \
252
+ > * 类型名称 * → * 标识符 *
253
253
254
- > Grammar of a tuple type:
254
+ > 元组类型的语法:
255
255
>
256
- > * tuple-type * → ** ` ( ` ** ** ` ) ` ** | ** ` ( ` ** * tuple-type-element * ** ` , ` ** * tuple-type-element-list * ** ` ) ` ** \
257
- > * tuple-type-element-list * → * tuple-type-element * | * tuple-type-element * ** ` , ` ** * tuple-type-element-list * \
258
- > * tuple-type-element * → * element-name * * type-annotation * | * type * \
259
- > * element-name * → * identifier *
256
+ > * 元组类型 * → ** ` ( ` ** ** ` ) ` ** | ** ` ( ` ** * 元组类型元素 * ** ` , ` ** * 元组类型元素列表 * ** ` ) ` ** \
257
+ > * 元组类型元素列表 * → * 元组类型元素 * | * 元组类型元素 * ** ` , ` ** * 元组类型元素列表 * \
258
+ > * 元组类型元素 * → * 元素名称 * * 类型注释 * | * 类型 * \
259
+ > * 元素名称 * → * 标识符 *
260
260
261
- > Grammar of a function type:
261
+ > 函数类型的语法:
262
262
>
263
- > * function-type * → * attributes * 可选 * function-type-argument-clause * ** ` async ` ** 可选 * throws-clause * 可选 ** ` -> ` ** * type *
263
+ > * 函数类型 * → * 属性 * 可选 * 函数类型子句 * ** ` async ` ** 可选 * throws* 可选 ** ` -> ` ** * 类型 *
264
264
>
265
- > * function-type-argument-clause * → ** ` ( ` ** ** ` ) ` ** \
266
- > * function-type-argument-clause * → ** ` ( ` ** * function-type-argument-list * ** ` ... ` ** 可选 ** ` ) ` **
265
+ > * 函数类型子句 * → ** ` ( ` ** ** ` ) ` ** \
266
+ > * 函数类型子句 * → ** ` ( ` ** * 函数类型参数列表 * ** ` ... ` ** 可选 ** ` ) ` **
267
267
>
268
- > * function-type-argument-list * → * function-type-argument * | * function-type-argument * ** ` , ` ** * function-type-argument-list * \
269
- > * function-type-argument * → * attributes * 可选 ** ` inout ` ** 可选 * type * | * argument-label * * type-annotation * \
270
- > * argument-label * → * identifier *
268
+ > * 函数类型参数列表 * → * 函数类型参数 * | * 函数类型参数 * ** ` , ` ** * 函数类型参数列表 * \
269
+ > * 函数类型参数 * → * 属性 * 可选 ** ` inout ` ** 可选 * 类型 * | * 参数标签 * * 类型注释 * \
270
+ > * 参数标签 * → * 标识符 *
271
271
>
272
- > * throws-clause * → ** ` throws ` ** | ** ` throws ` ** ** ` ( ` ** * type * ** ` ) ` **
272
+ > * 异常抛出子句 * → ** ` throws ` ** | ** ` throws ` ** ** ` ( ` ** * 类型 * ** ` ) ` **
273
273
274
- > Grammar of an array type:
274
+ > 数组类型的语法:
275
275
>
276
- > * array-type * → ** ` [ ` ** * type * ** ` ] ` **
276
+ > * 数组类型 * → ** ` [ ` ** * 类型 * ** ` ] ` **
277
277
278
- > Grammar of a dictionary type:
278
+ > 字典类型的语法:
279
279
>
280
- > * dictionary-type * → ** ` [ ` ** * type * ** ` : ` ** * type * ** ` ] ` **
280
+ > * 字典类型 * → ** ` [ ` ** * 类型 * ** ` : ` ** * 类型 * ** ` ] ` **
281
281
282
- > Grammar of an optional type:
282
+ > 可选类型的语法:
283
283
>
284
- > * optional-type * → * type * ** ` ? ` **
284
+ > * 可选类型 * → * 类型 * ** ` ? ` **
285
285
286
- > Grammar of an implicitly unwrapped optional type:
286
+ > 隐式解析可选类型的语法:
287
287
>
288
- > * implicitly-unwrapped-optional-type * → * type * ** ` ! ` **
288
+ > * 隐式解析可选类型 * → * 类型 * ** ` ! ` **
289
289
290
- > Grammar of a protocol composition type:
290
+ > 协议合成类型的语法:
291
291
>
292
- > * protocol-composition-type * → * type-identifier * ** ` & ` ** * protocol-composition-continuation * \
293
- > * protocol-composition-continuation * → * type-identifier * | * protocol-composition-type *
292
+ > * 协议合成类型 * → * 类型标识符 * ** ` & ` ** * 协议合成延续 * \
293
+ > * 协议合成延续 * → * 类型标识符 * | * 协议合成类型 *
294
294
295
- > Grammar of an opaque type:
295
+ > 不透明类型的语法:
296
296
>
297
- > * opaque-type * → ** ` some ` ** * type *
297
+ > * 不透明类型 * → ** ` some ` ** * 类型 *
298
298
299
- > Grammar of a boxed protocol type:
299
+ > 被包装的协议类型的语法:
300
300
>
301
- > * boxed-protocol-type * → ** ` any ` ** * type *
301
+ > * 被包装的协议类型 * → ** ` any ` ** * 类型 *
302
302
303
- > Grammar of a metatype type:
303
+ > 元类型的语法:
304
304
>
305
- > * metatype-type * → * type * ** ` . ` ** ** ` Type ` ** | * type * ** ` . ` ** ** ` Protocol ` **
305
+ > * 元类型 * → * 类型 * ** ` . ` ** ** ` Type ` ** | * 类型 * ** ` . ` ** ** ` Protocol ` **
306
306
307
- > Grammar of an Any type:
307
+ > 任意类型的语法:
308
308
>
309
- > * any-type * → ** ` Any ` **
309
+ > * 任意类型 * → ** ` Any ` **
310
310
311
- > Grammar of a Self type:
311
+ > 自身类型的语法:
312
312
>
313
- > * self-type * → ** ` Self ` **
313
+ > * 自身类型 * → ** ` Self ` **
314
314
315
- > Grammar of a type inheritance clause:
315
+ > 类型继承从句的语法:
316
316
>
317
- > * type-inheritance-clause * → ** ` : ` ** * type-inheritance-list * \
318
- > * type-inheritance-list * → * attributes * 可选 * type-identifier * | * attributes * 可选 * type-identifier * ** ` , ` ** * type-inheritance-list *
317
+ > * 类型继承从句 * → ** ` : ` ** * 类型继承集 * \
318
+ > * 类型继承集 * → * 属性 * 可选 * 类型标识符 * | * 属性 * 可选 * 类型标识符 * ** ` , ` ** * 类型继承集 *
319
319
320
320
## Expressions
321
321
0 commit comments