Changeset 42bce4e
- Timestamp:
- Mar 11, 2026, 5:42:49 PM (44 hours ago)
- Branches:
- master
- Children:
- 4c5ce70
- Parents:
- 4acd1f8
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r4acd1f8 r42bce4e 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Ma y 21 18:44:44 202513 // Update Count : 7 29612 // Last Modified On : Wed Mar 11 11:09:33 2026 13 // Update Count : 7300 14 14 // 15 15 … … 1415 1415 { $$ = new StatementNode( build_while( yylloc, $3, maybe_build_compound( yylloc, $5 ) ) ); } 1416 1416 | WHILE '(' conditional_declaration ')' statement ELSE statement // CFA 1417 { $$ = new StatementNode( build_while( yylloc, $3, maybe_build_compound( yylloc, $5 ), $7) ); }1417 { $$ = new StatementNode( build_while( yylloc, $3, maybe_build_compound( yylloc, $5 ), maybe_build_compound( yylloc, $7 ) ) ); } 1418 1418 | DO statement WHILE '(' ')' ';' // CFA => do while( 1 ) 1419 1419 { $$ = new StatementNode( build_do_while( yylloc, NEW_ONE, maybe_build_compound( yylloc, $2 ) ) ); } … … 1426 1426 { $$ = new StatementNode( build_do_while( yylloc, $5, maybe_build_compound( yylloc, $2 ) ) ); } 1427 1427 | DO statement WHILE '(' comma_expression ')' ELSE statement // CFA 1428 { $$ = new StatementNode( build_do_while( yylloc, $5, maybe_build_compound( yylloc, $2 ), $8) ); }1428 { $$ = new StatementNode( build_do_while( yylloc, $5, maybe_build_compound( yylloc, $2 ), maybe_build_compound( yylloc, $8 ) ) ); } 1429 1429 | FOR '(' ')' statement %prec THEN // CFA => for ( ;; ) 1430 1430 { $$ = new StatementNode( build_for( yylloc, new ForCtrl( nullptr, nullptr, nullptr ), maybe_build_compound( yylloc, $4 ) ) ); } … … 1437 1437 { $$ = new StatementNode( build_for( yylloc, $3, maybe_build_compound( yylloc, $5 ) ) ); } 1438 1438 | FOR '(' for_control_expression_list ')' statement ELSE statement // CFA 1439 { $$ = new StatementNode( build_for( yylloc, $3, maybe_build_compound( yylloc, $5 ), $7) ); }1439 { $$ = new StatementNode( build_for( yylloc, $3, maybe_build_compound( yylloc, $5 ), maybe_build_compound( yylloc, $7 ) ) ); } 1440 1440 ; 1441 1441
Note:
See TracChangeset
for help on using the changeset viewer.