식 요약Summary of Expressions

primary-expression:primary-expression:
identifieridentifier

constantconstant

string-literalstring-literal

( expression )( expression )

expression:expression:
assignment-expressionassignment-expression

expression , assignment-expressionexpression , assignment-expression

constant-expression:constant-expression:
conditional-expressionconditional-expression

conditional-expression:conditional-expression:
logical-OR-expressionlogical-OR-expression

logical-OR-expression ?logical-OR-expression ? expression : conditional-expressionexpression : conditional-expression

assignment-expression:assignment-expression:
conditional-expressionconditional-expression

unary-expression assignment-operator assignment-expressionunary-expression assignment-operator assignment-expression

postfix-expression:postfix-expression:
primary-expressionprimary-expression

postfix-expression [ expression ]postfix-expression [ expression ]

postfix-expression ( argument-expression-list opt)postfix-expression ( argument-expression-list opt)

postfix-expression .postfix-expression . identifieridentifier

postfix-expression -> identifierpostfix-expression -> identifier

postfix-expression ++postfix-expression ++

postfix-expression --postfix-expression --

argument-expression-list:argument-expression-list:
assignment-expressionassignment-expression

argument-expression-list , assignment-expressionargument-expression-list , assignment-expression

unary-expression:unary-expression:
postfix-expressionpostfix-expression

++ unary-expression++ unary-expression

-- unary-expression-- unary-expression

unary-operatorunary-operator

cast-expressioncast-expression

sizeof unary-expressionsizeof unary-expression

sizeof ( type-name )sizeof ( type-name )

unary-operator: 다음 중 하나unary-operator: one of
& * + - ~ !& * + - ~ !

cast-expression:cast-expression:
unary-expressionunary-expression

( type-name ) cast-expression( type-name ) cast-expression

multiplicative-expression:multiplicative-expression:
cast-expressioncast-expression

multiplicative-expression \* cast-expressionmultiplicative-expression \* cast-expression

multiplicative-expression / cast-expressionmultiplicative-expression / cast-expression

multiplicative-expression % cast-expressionmultiplicative-expression % cast-expression

additive-expression:additive-expression:
multiplicative-expressionmultiplicative-expression

additive-expression + multiplicative-expressionadditive-expression + multiplicative-expression

additive-expression - multiplicative-expressionadditive-expression - multiplicative-expression

shift-expression:shift-expression:
additive-expressionadditive-expression

shift-expression << additive-expressionshift-expression << additive-expression

shift-expression >> additive-expressionshift-expression >> additive-expression

relational-expression:relational-expression:
shift-expressionshift-expression

relational-expression < shift-expressionrelational-expression < shift-expression

relational-expression > shift-expression relational-expression <= shift-expressionrelational-expression > shift-expression relational-expression <= shift-expression

relational-expression >= shift-expressionrelational-expression >= shift-expression

equality-expression:equality-expression:
relational-expressionrelational-expression

equality-expression == relational-expressionequality-expression == relational-expression

equality-expression != relational-expressionequality-expression != relational-expression

AND-expression:AND-expression:
equality-expressionequality-expression

AND-expression & equality-expressionAND-expression & equality-expression

exclusive-OR-expression:exclusive-OR-expression:
AND-expressionAND-expression

exclusive-OR-expression ^ AND-expressionexclusive-OR-expression ^ AND-expression

inclusive-OR-expression:inclusive-OR-expression:
exclusive-OR-expressionexclusive-OR-expression

inclusive-OR-expression | exclusive-OR-expressioninclusive-OR-expression | exclusive-OR-expression

logical-AND-expression:logical-AND-expression:
inclusive-OR-expressioninclusive-OR-expression

logical-AND-expression && inclusive-OR-expressionlogical-AND-expression && inclusive-OR-expression

logical-OR-expression:logical-OR-expression:
logical-AND-expressionlogical-AND-expression

logical-OR-expression || logical-AND-expressionlogical-OR-expression || logical-AND-expression

참고 항목See Also

구 구조 문법Phrase Structure Grammar