additive_expression:
multiplicative_expression
additive_expression PLUS multiplicative_expression additive_expression DASH multiplicative_expression
shift_expression: additive_expression
shift_expression LEFT_0P additive_expression // зарезервировано shift_expression RIGHT_0P additive_expression // зарезервировано
relational_expression: shift_expression
relational_expression LEFT_ANGLE shift_expression relational_expression RIGHT_ANGLE shift_expression relational_expression LE_0P shift_expression relational_expression GE_0P shift_expression
equality_expression: relational_expression
equality_expression EQ_0P relational_expression equality_expression NE_0P relational_expression
and_expression:
equa1i ty_expressi on
and_expression AMPERSAND equality_expression // зарезервировано
exclus i ve_or_expressi on: and_expression
exclusive_or_expression CARET and_expression // зарезервировано
inclusive_or_expression: exclusi ve_or_expressi on
inclusive_or_expression VERTICALJ3AR exclusive_or_expression
// зарезервировано
logical_and_expression: inclusive_or_expression
logical_and_expression AND_0P inclusive_or_expression
logical_xor_expression: logical_and_expression
logical_xor_expression X0R_OP logical_and_expression
logical_or_expression: logical_xor_expression
logical_or_expression 0R_0P logical_xor_expression
conditional_expression: logical_or_expression
logical_or_expression QUESTION expression COLON
Грамматика языка
conditional_expression
assignment_expression: conditional_expression
unary_expression assignment_operator assignment_expression
assi gnment_operator: EQUAL
MUL_ASSIGN DIV_ASSIGN MOD_ASSIGN ADD_ASSIGN SUB_ASSIGN
LEFT_ASSIGN // зарезервировано RIGHT_ASSIGN // зарезервировано AND_ASSIGN // зарезервировано XOR_ASSIGN // зарезервировано 0R_ASSIGN // зарезервировано
expression:
assi gnment_expressi on
expression COMMA assignment_expression
constant_expression: conditional_expression
declaration:
function_prototype SEMICOLON init_declarator_list SEMICOLON
function_prototype:
function_declarator RIGHT_PAREN