correct attributes grammar

This commit is contained in:
stanzhai
2014-06-14 13:47:00 +08:00
parent 5d96ced584
commit 1f351fad77
2 changed files with 13 additions and 13 deletions

View File

@ -114,14 +114,14 @@ Interface Builder特性是Interface Builder用来与Xcode同步的声明特性
该特性用于修饰函数或方法的类型,表明该函数或方法不会返回到它的调用者中去。你也可以用它标记函数或方法的声明,表示函数或方法的相应类型,`T`,是`@noreturn T` 该特性用于修饰函数或方法的类型,表明该函数或方法不会返回到它的调用者中去。你也可以用它标记函数或方法的声明,表示函数或方法的相应类型,`T`,是`@noreturn T`
> 特性语法 > 特性语法
> attribute -> @ [attribute-name]() [attribute-argument-clause]()opt > *特色* → **@** [*特性名*](..\chapter3\06_Attributes.html#attribute_name) [*特性参数子句*](..\chapter3\06_Attributes.html#attribute_argument_clause) _可选_
> attribute-name -> [identifier]() > *特性名* → [*标识符*](LexicalStructure.html#identifier)
> attribute-argument-clause -> ( [balanced-tokens]()opt ) > *特性参数子句* → **(** [*平衡令牌列表*](..\chapter3\06_Attributes.html#balanced_tokens) _可选_ **)**
> attributes -> [attribute]() [attributes]()opt > *特性(Attributes)列表* → [*特色*](..\chapter3\06_Attributes.html#attribute) [*特性(Attributes)列表*](..\chapter3\06_Attributes.html#attributes) _可选_
> balanced-tokens -> [balanced-token]() [balanced-tokens]()opt > *平衡令牌列表* → [*平衡令牌*](..\chapter3\06_Attributes.html#balanced_token) [*平衡令牌列表*](..\chapter3\06_Attributes.html#balanced_tokens) _可选_
> balanced-token -> ( [balanced-tokens]()opt ) > *平衡令牌* → **(** [*平衡令牌列表*](..\chapter3\06_Attributes.html#balanced_tokens) _可选_ **)**
> balanced-token -> [ [balanced-tokens]()opt ] > *平衡令牌* → **[** [*平衡令牌列表*](..\chapter3\06_Attributes.html#balanced_tokens) _可选_ **]**
> balanced-token -> { [balanced-tokens]()opt } > *平衡令牌* → **{** [*平衡令牌列表*](..\chapter3\06_Attributes.html#balanced_tokens) _可选_ **}**
> balanced-token -> 任意标识符关键字字面量或运算符 > *平衡令牌* → **任意标识符, 关键字, 字面量或运算符**
> balanced-token -> 任意标点符号,除了(, ), [, ], {, 或 } > *平衡令牌* → **任意标点除了(, ), [, ], {, 或 }**

View File

@ -417,8 +417,8 @@ _________________
> *平衡令牌* → **(** [*平衡令牌列表*](..\chapter3\06_Attributes.html#balanced_tokens) _可选_ **)** > *平衡令牌* → **(** [*平衡令牌列表*](..\chapter3\06_Attributes.html#balanced_tokens) _可选_ **)**
> *平衡令牌* → **[** [*平衡令牌列表*](..\chapter3\06_Attributes.html#balanced_tokens) _可选_ **]** > *平衡令牌* → **[** [*平衡令牌列表*](..\chapter3\06_Attributes.html#balanced_tokens) _可选_ **]**
> *平衡令牌* → **{** [*平衡令牌列表*](..\chapter3\06_Attributes.html#balanced_tokens) _可选_ **}** > *平衡令牌* → **{** [*平衡令牌列表*](..\chapter3\06_Attributes.html#balanced_tokens) _可选_ **}**
> *平衡令牌* → 任意标识符, 关键字, 字面量或运算符 > *平衡令牌* → **任意标识符, 关键字, 字面量或运算符**
> *平衡令牌* → 任意除了(-, )=, [-, ]-, {- 或 }- > *平衡令牌* → **任意标点除了(, ), [, ], {, 或 }**
<a name="expressions"></a> <a name="expressions"></a>
## 表达式 ## 表达式