Changeset 8e90fd6 for src/Parser/parser.yy
- Timestamp:
- Jan 18, 2025, 3:46:06 PM (9 months ago)
- Branches:
- master
- Children:
- d0b6712
- Parents:
- fa59c40 (diff), df56e25 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rfa59c40 r8e90fd6 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Dec 15 21:30:38 202413 // Update Count : 693 312 // Last Modified On : Fri Jan 17 14:35:08 2025 13 // Update Count : 6935 14 14 // 15 15 … … 377 377 %token ATTRIBUTE EXTENSION // GCC 378 378 %token IF ELSE SWITCH CASE DEFAULT DO WHILE FOR BREAK CONTINUE GOTO RETURN 379 %token CHOOSE FALLTHR U FALLTHROUGH WITH WHEN WAITFOR WAITUNTIL// CFA379 %token CHOOSE FALLTHROUGH WITH WHEN WAITFOR WAITUNTIL // CFA 380 380 %token CORUN COFOR 381 381 %token DISABLE ENABLE TRY THROW THROWRESUME AT // CFA … … 1680 1680 // whereas normal operator precedence yields goto (*i)+3; 1681 1681 { $$ = new StatementNode( build_computedgoto( $3 ) ); } 1682 // A semantic check is required to ensure fallthr uappears only in the body of a choose statement.1683 | fall_through_name ';'// CFA1682 // A semantic check is required to ensure fallthrough appears only in the body of a choose statement. 1683 | FALLTHROUGH ';' // CFA 1684 1684 { $$ = new StatementNode( build_branch( yylloc, ast::BranchStmt::FallThrough ) ); } 1685 | fall_through_name identifier_or_type_name ';'// CFA1685 | FALLTHROUGH identifier_or_type_name ';' // CFA 1686 1686 { $$ = new StatementNode( build_branch( yylloc, $2, ast::BranchStmt::FallThrough ) ); } 1687 | fall_through_name DEFAULT ';'// CFA1687 | FALLTHROUGH DEFAULT ';' // CFA 1688 1688 { $$ = new StatementNode( build_branch( yylloc, ast::BranchStmt::FallThroughDefault ) ); } 1689 1689 | CONTINUE ';' … … 1723 1723 | THROWRESUME assignment_expression_opt AT assignment_expression ';' // handles reresume 1724 1724 { $$ = new StatementNode( build_resume_at( $2, $4 ) ); } 1725 ;1726 1727 fall_through_name: // CFA1728 FALLTHRU1729 | FALLTHROUGH1730 1725 ; 1731 1726
Note:
See TracChangeset
for help on using the changeset viewer.