Skip to content

Commit 08ab0e7

Browse files
committed
translate to Grammar of a type inheritance clause
1 parent 9901496 commit 08ab0e7

File tree

1 file changed

+92
-92
lines changed

1 file changed

+92
-92
lines changed

swift-6-beta.docc/ReferenceManual/SummaryOfTheGrammar.md

Lines changed: 92 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -183,139 +183,139 @@ make the same change here also.
183183
>
184184
> *正则表达式扩展分隔符***`#`** *正则表达式扩展分隔符* 可选
185185
186-
> Grammar of operators:
186+
> 运算符的语法:
187187
>
188-
> *operator**operator-head* *operator-characters*可选 \
189-
> *operator**dot-operator-head* *dot-operator-characters*
188+
> *运算符**运算符头* *运算符字符集* 可选 \
189+
> *运算符**点运算符头* *点运算符字符集*
190190
>
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+00B6U+00BBU+00BFU+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
209209
>
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+
> *运算符字符集**运算符字符* *运算符字符集* 可选
218218
>
219-
> *dot-operator-head***`.`** \
220-
> *dot-operator-character***`.`** | *operator-character* \
221-
> *dot-operator-characters**dot-operator-character* *dot-operator-characters*可选
219+
> *点运算符头***`.`** \
220+
> *点运算符字符***`.`** | *运算符字符* \
221+
> *点运算符字符集**点运算符字符* *点运算符字符集* 可选
222222
>
223-
> *infix-operator**operator* \
224-
> *prefix-operator**operator* \
225-
> *postfix-operator**operator*
223+
> *中缀运算符**运算符* \
224+
> *前缀运算符**运算符* \
225+
> *后缀运算符**运算符*
226226
227-
## Types
227+
## 类型
228228

229-
> Grammar of a type:
229+
> 类型的语法:
230230
>
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* **`)`**
244244
245-
> Grammar of a type annotation:
245+
> 类型注释的语法:
246246
>
247-
> *type-annotation***`:`** *attributes*可选 **`inout`**可选 *type*
247+
> *类型注释***`:`** *属性(Attributes)* 可选 **`inout`** 可选 *类型*
248248
249-
> Grammar of a type identifier:
249+
> 类型标识符的语法:
250250
>
251-
> *type-identifier**type-name* *generic-argument-clause*可选 | *type-name* *generic-argument-clause*可选 **`.`** *type-identifier* \
252-
> *type-name**identifier*
251+
> *类型标识符**类型名称* *泛型参数子句* 可选 | *类型名称* *泛型参数子句* 可选 **`.`** *类型标识符* \
252+
> *类型名称**标识符*
253253
254-
> Grammar of a tuple type:
254+
> 元组类型的语法:
255255
>
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+
> *元素名称**标识符*
260260
261-
> Grammar of a function type:
261+
> 函数类型的语法:
262262
>
263-
> *function-type**attributes*可选 *function-type-argument-clause* **`async`**可选 *throws-clause*可选 **`->`** *type*
263+
> *函数类型**属性* 可选 *函数类型子句* **`async`** 可选 *throws* 可选 **`->`** *类型*
264264
>
265-
> *function-type-argument-clause***`(`** **`)`** \
266-
> *function-type-argument-clause***`(`** *function-type-argument-list* **`...`**可选 **`)`**
265+
> *函数类型子句***`(`** **`)`** \
266+
> *函数类型子句***`(`** *函数类型参数列表* **`...`** 可选 **`)`**
267267
>
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+
> *参数标签**标识符*
271271
>
272-
> *throws-clause***`throws`** | **`throws`** **`(`** *type* **`)`**
272+
> *异常抛出子句***`throws`** | **`throws`** **`(`** *类型* **`)`**
273273
274-
> Grammar of an array type:
274+
> 数组类型的语法:
275275
>
276-
> *array-type***`[`** *type* **`]`**
276+
> *数组类型***`[`** *类型* **`]`**
277277
278-
> Grammar of a dictionary type:
278+
> 字典类型的语法:
279279
>
280-
> *dictionary-type***`[`** *type* **`:`** *type* **`]`**
280+
> *字典类型***`[`** *类型* **`:`** *类型* **`]`**
281281
282-
> Grammar of an optional type:
282+
> 可选类型的语法:
283283
>
284-
> *optional-type**type* **`?`**
284+
> *可选类型**类型* **`?`**
285285
286-
> Grammar of an implicitly unwrapped optional type:
286+
> 隐式解析可选类型的语法:
287287
>
288-
> *implicitly-unwrapped-optional-type**type* **`!`**
288+
> *隐式解析可选类型**类型* **`!`**
289289
290-
> Grammar of a protocol composition type:
290+
> 协议合成类型的语法:
291291
>
292-
> *protocol-composition-type**type-identifier* **`&`** *protocol-composition-continuation* \
293-
> *protocol-composition-continuation**type-identifier* | *protocol-composition-type*
292+
> *协议合成类型**类型标识符* **`&`** *协议合成延续* \
293+
> *协议合成延续**类型标识符* | *协议合成类型*
294294
295-
> Grammar of an opaque type:
295+
> 不透明类型的语法:
296296
>
297-
> *opaque-type***`some`** *type*
297+
> *不透明类型***`some`** *类型*
298298
299-
> Grammar of a boxed protocol type:
299+
> 被包装的协议类型的语法:
300300
>
301-
> *boxed-protocol-type***`any`** *type*
301+
> *被包装的协议类型***`any`** *类型*
302302
303-
> Grammar of a metatype type:
303+
> 元类型的语法:
304304
>
305-
> *metatype-type**type* **`.`** **`Type`** | *type* **`.`** **`Protocol`**
305+
> *元类型**类型* **`.`** **`Type`** | *类型* **`.`** **`Protocol`**
306306
307-
> Grammar of an Any type:
307+
> 任意类型的语法:
308308
>
309-
> *any-type***`Any`**
309+
> *任意类型***`Any`**
310310
311-
> Grammar of a Self type:
311+
> 自身类型的语法:
312312
>
313-
> *self-type***`Self`**
313+
> *自身类型***`Self`**
314314
315-
> Grammar of a type inheritance clause:
315+
> 类型继承从句的语法:
316316
>
317-
> *type-inheritance-clause***`:`** *type-inheritance-list* \
318-
> *type-inheritance-list**attributes*可选 *type-identifier* | *attributes*可选 *type-identifier* **`,`** *type-inheritance-list*
317+
> *类型继承从句***`:`** *类型继承集* \
318+
> *类型继承集**属性* 可选 *类型标识符* | *属性* 可选 *类型标识符* **`,`** *类型继承集*
319319
320320
## Expressions
321321

0 commit comments

Comments
 (0)