Skip to content

Latest commit

 

History

History
92 lines (61 loc) · 1.99 KB

summary-of-statements.md

File metadata and controls

92 lines (61 loc) · 1.99 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs ms.assetid caps.latest.revision author ms.author manager
Summary of Statements | Microsoft Docs
11/04/2016
cpp-language
article
C++
ce45d2fe-ec0e-459f-afb1-80ab6a7f0239
8
mikeblome
mblome
ghogen

Summary of Statements

statement:
labeled-statement

compound-statement

expression-statement

selection-statement

iteration-statement

jump-statement

try-except-statement /* Microsoft Specific */

try-finally-statement /* Microsoft Specific */

jump-statement:
goto identifier ;

continue ;

break ;

return expressionopt**;**

compound-statement:
{ declaration-listoptstatement-listopt**}**

declaration-list:
declaration

declaration-list declaration

statement-list:
statement

statement-list statement

expression-statement:
expressionopt**;**

iteration-statement:
while ( expression ) statement

do statement while ( expression ) ;

for ( expressionopt**;** expressionopt**;** expressionopt**)** 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: /* Microsoft Specific */
__try compound-statement

__except ( expression ) compound-statement

try-finally-statement: /* Microsoft Specific */
__try compound-statement

__finally compound-statement

See Also

Phrase Structure Grammar