返回介绍

A.8.3 Expressions

发布于 2020-09-09 22:56:12 字数 2726 浏览 900 评论 0 收藏 0

inc_or_dec_expression ::=

inc_or_dec_operator { attribute_instance } variable_lvalue

| variable_lvalue { attribute_instance } inc_or_dec_operator

conditional_expression ::= cond_predicate ? { attribute_instance } expression : expression

constant_expression ::=

constant_primary

| unary_operator { attribute_instance } constant_primary

| constant_expression binary_operator { attribute_instance } constant_expression

| constant_expression ? { attribute_instance } constant_expression : constant_expression

constant_mintypmax_expression ::=

constant_expression

| constant_expression : constant_expression : constant_expression

constant_param_expression ::=

constant_mintypmax_expression | data_type | $

param_expression ::= mintypmax_expression | data_type

constant_range_expression ::=

constant_expression

| constant_part_select_range

constant_part_select_range ::=

constant_range

| constant_indexed_range

constant_range ::= constant_expression : constant_expression

constant_indexed_range ::=

constant_expression +: constant_expression

| constant_expression -: constant_expression

expression ::=

primary

| unary_operator { attribute_instance } primary

| inc_or_dec_expression

| ( operator_assignment )

| expression binary_operator { attribute_instance } expression

| conditional_expression

| inside_expression

| tagged_union_expression

tagged_union_expression ::=

tagged member_identifier [ expression ]

inside_expression ::= expression inside { open_range_list }

value_range ::=

expression

| [ expression : expression ]

mintypmax_expression ::=

expression

| expression : expression : expression

module_path_conditional_expression ::= module_path_expression ? { attribute_instance }

module_path_expression : module_path_expression

module_path_expression ::=

module_path_primary

| unary_module_path_operator { attribute_instance } module_path_primary

| module_path_expression binary_module_path_operator { attribute_instance }

module_path_expression

| module_path_conditional_expression

module_path_mintypmax_expression ::=

module_path_expression

| module_path_expression : module_path_expression : module_path_expression

range_expression ::= expression | part_select_range

part_select_range ::= constant_range | indexed_range

indexed_range ::=

expression +: constant_expression

| expression -: constant_expression

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文