Skip to content

Commit e3a5cae

Browse files
committed
translate to Grammar of a function call expression
1 parent 1c75cb3 commit e3a5cae

File tree

1 file changed

+61
-61
lines changed

1 file changed

+61
-61
lines changed

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

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ make the same change here also.
269269
> *函数类型参数**属性* 可选 **`inout`** 可选 *类型* | *参数标签* *类型注释* \
270270
> *参数标签**标识符*
271271
>
272-
> *异常抛出子句***`throws`** | **`throws`** **`(`** *类型* **`)`**
272+
> *异常throws***`throws`** | **`throws`** **`(`** *类型* **`)`**
273273
274274
> 数组类型的语法:
275275
>
@@ -426,93 +426,93 @@ make the same change here also.
426426
> *switch case 表达式**case 标签* *语句* \
427427
> *switch case 表达式**default 标签* *语句*
428428
429-
> Grammar of a closure expression:
429+
> 闭包表达式的语法:
430430
>
431-
> *closure-expression***`{`** *attributes*可选 *closure-signature*可选 *statements*可选 **`}`**
431+
> *闭包表达式***`{`** *属性* 可选 *闭包签名* 可选 *语句* 可选 **`}`**
432432
>
433-
> *closure-signature**capture-list*可选 *closure-parameter-clause* **`async`**可选 *throws-clause*可选 *function-result*可选 **`in`** \
434-
> *closure-signature**capture-list* **`in`**
433+
> *闭包签名**捕获列表* 可选 *闭包参数子句* **`async`** 可选 *throws* 可选 *函数结果* 可选 **`in`** \
434+
> *闭包签名**捕获列表* **`in`**
435435
>
436-
> *closure-parameter-clause***`(`** **`)`** | **`(`** *closure-parameter-list* **`)`** | *identifier-list* \
437-
> *closure-parameter-list**closure-parameter* | *closure-parameter* **`,`** *closure-parameter-list* \
438-
> *closure-parameter**closure-parameter-name* *type-annotation*可选 \
439-
> *closure-parameter**closure-parameter-name* *type-annotation* **`...`** \
440-
> *closure-parameter-name**identifier*
436+
> *闭包参数子句***`(`** **`)`** | **`(`** *闭包参数列表* **`)`** | *标识符列表* \
437+
> *闭包参数列表**闭包参数* | *闭包参数* **`,`** *闭包参数列表* \
438+
> *闭包参数**闭包参数名* *类型注释* 可选 \
439+
> *闭包参数**闭包参数名* *类型注释* **`...`** \
440+
> *闭包参数名**标识符*
441441
>
442-
> *capture-list***`[`** *capture-list-items* **`]`** \
443-
> *capture-list-items**capture-list-item* | *capture-list-item* **`,`** *capture-list-items* \
444-
> *capture-list-item**capture-specifier*可选 *identifier* \
445-
> *capture-list-item**capture-specifier*可选 *identifier* **`=`** *expression* \
446-
> *capture-list-item**capture-specifier*可选 *self-expression* \
447-
> *capture-specifier***`weak`** | **`unowned`** | **`unowned(safe)`** | **`unowned(unsafe)`**
442+
> *捕获列表***`[`** *捕获列表项* **`]`** \
443+
> *捕获列表项**捕获列表项* | *捕获列表项* **`,`** *捕获列表项* \
444+
> *捕获列表项**捕获说明符* 可选 *标识符* \
445+
> *捕获列表项**捕获说明符* 可选 *标识符* **`=`** *表达式* \
446+
> *捕获列表项**捕获说明符* 可选 *self 表达式* \
447+
> *捕获说明符***`weak`** | **`unowned`** | **`unowned(safe)`** | **`unowned(unsafe)`**
448448
449-
> Grammar of an implicit member expression:
449+
> 隐式成员表达式的语法:
450450
>
451-
> *implicit-member-expression***`.`** *identifier* \
452-
> *implicit-member-expression***`.`** *identifier* **`.`** *postfix-expression*
451+
> *隐式成员表达式***`.`** *标识符* \
452+
> *隐式成员表达式***`.`** *标识符* **`.`** *后缀表达式*
453453
454-
> Grammar of a parenthesized expression:
454+
> 圆括号表达式的语法:
455455
>
456-
> *parenthesized-expression***`(`** *expression* **`)`**
456+
> *圆括号表达式***`(`** *表达式* **`)`**
457457
458-
> Grammar of a tuple expression:
458+
> 元组表达式的语法:
459459
>
460-
> *tuple-expression***`(`** **`)`** | **`(`** *tuple-element* **`,`** *tuple-element-list* **`)`** \
461-
> *tuple-element-list**tuple-element* | *tuple-element* **`,`** *tuple-element-list* \
462-
> *tuple-element**expression* | *identifier* **`:`** *expression*
460+
> *元组表达式***`(`** **`)`** | **`(`** *元组元素* **`,`** *元组元素列表* **`)`** \
461+
> *元组元素列表**元组元素* | *元组元素* **`,`** *元组元素列表* \
462+
> *元组元素**表达式* | *标识符* **`:`** *表达式*
463463
464-
> Grammar of a wildcard expression:
464+
> 通配符表达式的语法:
465465
>
466-
> *wildcard-expression***`_`**
466+
> *通配符表达式***`_`**
467467
468-
> Grammar of a macro-expansion expression:
468+
> 宏展开表达式的语法:
469469
>
470-
> *macro-expansion-expression***`#`** *identifier* *generic-argument-clause*可选 *function-call-argument-clause*可选 *trailing-closures*可选
470+
> *宏展开表达式***`#`** *标识符* *泛型参数子句* 可选 *函数调用参数子句* 可选 *尾随闭包* 可选
471471
472-
> Grammar of a key-path expression:
472+
> ke'y表达式的语法:
473473
>
474-
> *key-path-expression***`\`** *type*可选 **`.`** *key-path-components* \
475-
> *key-path-components**key-path-component* | *key-path-component* **`.`** *key-path-components* \
476-
> *key-path-component**identifier* *key-path-postfixes*可选 | *key-path-postfixes*
474+
> *key-path 表达式***`\`** *类型* 可选 **`.`** *key-path 组件* \
475+
> *key-path 组件**key-path 组件* | *key-path 组件* **`.`** *key-path 组件* \
476+
> *key-path 组件**标识符* *key-path 后缀* 可选 | *key-path 后缀*
477477
>
478-
> *key-path-postfixes**key-path-postfix* *key-path-postfixes*可选 \
479-
> *key-path-postfix***`?`** | **`!`** | **`self`** | **`[`** *function-call-argument-list* **`]`**
478+
> *key-path 后缀**key-path 后缀* *key-path 后缀* 可选 \
479+
> *key-path 后缀***`?`** | **`!`** | **`self`** | **`[`** *函数调用参数列表* **`]`**
480480
481-
> Grammar of a selector expression:
481+
> 选择器表达式的语法:
482482
>
483-
> *selector-expression***`#selector`** **`(`** *expression* **`)`** \
484-
> *selector-expression***`#selector`** **`(`** **`getter:`** *expression* **`)`** \
485-
> *selector-expression***`#selector`** **`(`** **`setter:`** *expression* **`)`**
483+
> *选择器表达式***`#selector`** **`(`** *表达式* **`)`** \
484+
> *选择器表达式***`#selector`** **`(`** **`getter:`** *表达式* **`)`** \
485+
> *选择器表达式***`#selector`** **`(`** **`setter:`** *表达式* **`)`**
486486
487-
> Grammar of a key-path string expression:
487+
> key-path 字符串表达式的语法:
488488
>
489-
> *key-path-string-expression***`#keyPath`** **`(`** *expression* **`)`**
489+
> *key-path 字符串表达式***`#keyPath`** **`(`** *表达式* **`)`**
490490
491-
> Grammar of a postfix expression:
491+
> 后缀表达式的语法:
492492
>
493-
> *postfix-expression**primary-expression* \
494-
> *postfix-expression**postfix-expression* *postfix-operator* \
495-
> *postfix-expression**function-call-expression* \
496-
> *postfix-expression**initializer-expression* \
497-
> *postfix-expression**explicit-member-expression* \
498-
> *postfix-expression**postfix-self-expression* \
499-
> *postfix-expression**subscript-expression* \
500-
> *postfix-expression**forced-value-expression* \
501-
> *postfix-expression**optional-chaining-expression*
493+
> *后缀表达式**基本表达式* \
494+
> *后缀表达式**后缀表达式* *后缀运算符* \
495+
> *后缀表达式**函数调用表达式* \
496+
> *后缀表达式**初始化表达式* \
497+
> *后缀表达式**显式成员表达式* \
498+
> *后缀表达式**后缀 self 表达式* \
499+
> *后缀表达式**下标表达式* \
500+
> *后缀表达式**强制取值表达式* \
501+
> *后缀表达式**可选链式表达式*
502502
503-
> Grammar of a function call expression:
503+
> 函数调用表达式的语法:
504504
>
505-
> *function-call-expression**postfix-expression* *function-call-argument-clause* \
506-
> *function-call-expression**postfix-expression* *function-call-argument-clause*可选 *trailing-closures*
505+
> *函数调用表达式**后缀表达式* *函数调用参数子句* \
506+
> *函数调用表达式**后缀表达式* *函数调用参数子句* 可选 *尾随闭包*
507507
>
508-
> *function-call-argument-clause***`(`** **`)`** | **`(`** *function-call-argument-list* **`)`** \
509-
> *function-call-argument-list**function-call-argument* | *function-call-argument* **`,`** *function-call-argument-list* \
510-
> *function-call-argument**expression* | *identifier* **`:`** *expression* \
511-
> *function-call-argument**operator* | *identifier* **`:`** *operator*
508+
> *函数调用参数子句***`(`** **`)`** | **`(`** *函数调用参数列表* **`)`** \
509+
> *函数调用参数列表**函数调用参数* | *函数调用参数* **`,`** *函数调用参数列表* \
510+
> *函数调用参数**表达式* | *标识符* **`:`** *表达式* \
511+
> *函数调用参数**运算符* | *标识符* **`:`** *运算符*
512512
>
513-
> *trailing-closures**closure-expression* *labeled-trailing-closures*可选 \
514-
> *labeled-trailing-closures**labeled-trailing-closure* *labeled-trailing-closures*可选 \
515-
> *labeled-trailing-closure**identifier* **`:`** *closure-expression*
513+
> *尾随闭包**闭包表达式* *带标签的尾随闭包* 可选 \
514+
> *带标签的尾随闭包**带标签的尾随闭包* *带标签的尾随闭包* 可选 \
515+
> *带标签的尾随闭包**标识符* **`:`** *闭包表达式*
516516
517517
> Grammar of an initializer expression:
518518
>

0 commit comments

Comments
 (0)