Changeset aac37fa
- Timestamp:
- Feb 12, 2022, 1:51:52 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- c655650
- Parents:
- 5910fc0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r5910fc0 raac37fa 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Feb 1 11:06:13202213 // Update Count : 51 6712 // Last Modified On : Fri Feb 11 14:26:15 2022 13 // Update Count : 5174 14 14 // 15 15 … … 1197 1197 { $$ = new StatementNode( build_while( $3, maybe_build_compound( $5 ) ) ); } 1198 1198 | WHILE '(' conditional_declaration ')' statement ELSE statement // CFA 1199 // { SemanticError( yylloc, "Loop default block is currently unimplemented." ); $$ = nullptr; }1200 1199 { $$ = new StatementNode( build_while( $3, maybe_build_compound( $5 ), $7 ) ); } 1201 1200 | DO statement WHILE '(' ')' ';' // CFA => do while( 1 ) … … 1204 1203 { $$ = new StatementNode( build_do_while( $5, maybe_build_compound( $2 ) ) ); } 1205 1204 | DO statement WHILE '(' comma_expression ')' ELSE statement // CFA 1206 // { SemanticError( yylloc, "Loop default block is currently unimplemented." ); $$ = nullptr; }1207 1205 { $$ = new StatementNode( build_do_while( $5, maybe_build_compound( $2 ), $8 ) ); } 1208 1206 | FOR '(' ')' statement // CFA => for ( ;; ) … … 1211 1209 { $$ = new StatementNode( build_for( $3, maybe_build_compound( $5 ) ) ); } 1212 1210 | FOR '(' for_control_expression_list ')' statement ELSE statement // CFA 1213 // { SemanticError( yylloc, "Loop default block is currently unimplemented." ); $$ = nullptr; }1214 1211 { $$ = new StatementNode( build_for( $3, maybe_build_compound( $5 ), $7 ) ); } 1215 1212 ; … … 2729 2726 | ASM '(' string_literal ')' ';' // GCC, global assembler statement 2730 2727 { $$ = DeclarationNode::newAsmStmt( new StatementNode( build_asm( false, $3, 0 ) ) ); } 2728 | EXTERN STRINGliteral 2729 { 2730 linkageStack.push( linkage ); // handle nested extern "C"/"Cforall" 2731 linkage = LinkageSpec::update( yylloc, linkage, $2 ); 2732 } 2733 up external_definition down 2734 { 2735 linkage = linkageStack.top(); 2736 linkageStack.pop(); 2737 $$ = $5; 2738 } 2731 2739 | EXTERN STRINGliteral // C++-style linkage specifier 2732 2740 {
Note: See TracChangeset
for help on using the changeset viewer.