문 요약Summary of Statements

statement:statement:
labeled-statementlabeled-statement

compound-statementcompound-statement

expression-statementexpression-statement

selection-statementselection-statement

iteration-statementiteration-statement

jump-statementjump-statement

try-except-statement /* Microsoft 전용 */try-except-statement /* Microsoft Specific */

try-finally-statement /* Microsoft 전용 */try-finally-statement /* Microsoft Specific */

점프 문:jump-statement:
goto identifier ;goto identifier ;

continue ;continue ;

break ;break ;

return expressionopt;return expressionopt;

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

declaration-list:declaration-list:
declarationdeclaration

declaration-list declarationdeclaration-list declaration

statement-list:statement-list:
statementstatement

statement-list statementstatement-list statement

expression-statement:expression-statement:
expressionopt;expressionopt;

iteration-statement:iteration-statement:
while ( expression ) statementwhile ( expression ) statement

do statement while ( expression ) ;do statement while ( expression ) ;

for ( expressionopt; expressionopt; expressionopt) statementfor ( expressionopt; expressionopt; expressionopt) statement

selection-statement:selection-statement:
if ( expression ) statementif ( expression ) statement

if ( expression ) statement else statementif ( expression ) statement else statement

switch ( expression ) statementswitch ( expression ) statement

labeled-statement:labeled-statement:
identifier : statementidentifier : statement

case constant-expression : statementcase constant-expression : statement

default : statementdefault : statement

try-except-statement: /* Microsoft 전용 */try-except-statement: /* Microsoft Specific */
__try compound-statement__try compound-statement

__except ( expression ) compound-statement__except ( expression ) compound-statement

try-finally-statement: /* Microsoft 전용 */try-finally-statement: /* Microsoft Specific */
__try compound-statement__try compound-statement

__finally compound-statement__finally compound-statement

참고 항목See Also

구 구조 문법Phrase Structure Grammar