Resumo de instruções C
statement
:
labeled-statement
compound-statement
expression-statement
selection-statement
iteration-statement
jump-statement
try-except-statement
/* Específico da Microsoft */
try-finally-statement
/* Específico da Microsoft */
jump-statement
:
goto
identifier
;
continue ;
break ;
return
expression
opt ;
__leave ;
/* Específico da Microsoft1 */
compound-statement
:
{
declaration-list
opt statement-list
opt }
declaration-list
:
declaration
declaration-list
declaration
statement-list
:
statement
statement-list
statement
expression-statement
:
expression
opt ;
iteration-statement
:
while (
expression
)
statement
do
statement
while (
expression
) ;
for (
expression
opt ;
expression
opt ;
expression
opt )
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
: /* Específico da Microsoft */
__try
compound-statement
__except (
expression
)
compound-statement
try-finally-statement
: /* Específico da Microsoft */
__try
compound-statement
__finally
compound-statement
1 A palavra-chave __leave
só é válida dentro do bloco __try
de um try-except-statement
ou um try-finally-statement
.