Sdílet prostřednictvím


Souhrn příkazů jazyka C

statement:
labeled-statement
compound-statement
expression-statement
selection-statement
iteration-statement
jump-statement
try-except-statement /* Specifické pro Microsoft */
try-finally-statement /* Specifické pro Microsoft */

jump-statement:
goto identifier ;
continue ;
break ;
returnexpressionvolit ;
__leave ; /* Specifické proMicrosoft 1 */

compound-statement:
{declaration-listopt opt statement-list }

declaration-list:
declaration
declaration-list declaration

statement-list:
statement
statement-list statement

expression-statement:
expressionvolit ;

iteration-statement:
while ( expression ) statement
do statement while ( expression ) ;
for (expressionopt opt )expression ; ; expression statement

selection-statement:
if ( expression ) statement
if ( expression ) statement else statement
switch ( expression ) statement

labeled-statement:
identifier : statement
case constant-expression : statement
default : statement

try-except-statement: /* Specifické pro Microsoft */
__try compound-statement __except ( expression ) compound-statement

try-finally-statement: /* Specifické pro Microsoft */
__try compound-statement __finally compound-statement

1 Klíčové __leave slovo je platné pouze v __try rámci bloku nebo try-except-statement try-finally-statement.

Viz také

Gramatika struktury frází