Changes in src/Parser/parser.yy [d96f7c4:a16f2b6]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rd96f7c4 ra16f2b6 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jan 17 14:35:08 202513 // Update Count : 693 512 // Last Modified On : Sun Dec 15 21:30:38 2024 13 // Update Count : 6933 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 OUGH WITH WHEN WAITFOR WAITUNTIL// CFA379 %token CHOOSE FALLTHRU 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 oughappears only in the body of a choose statement.1683 | FALLTHROUGH ';'// CFA1682 // A semantic check is required to ensure fallthru appears only in the body of a choose statement. 1683 | fall_through_name ';' // CFA 1684 1684 { $$ = new StatementNode( build_branch( yylloc, ast::BranchStmt::FallThrough ) ); } 1685 | FALLTHROUGH identifier_or_type_name ';'// CFA1685 | fall_through_name identifier_or_type_name ';' // CFA 1686 1686 { $$ = new StatementNode( build_branch( yylloc, $2, ast::BranchStmt::FallThrough ) ); } 1687 | FALLTHROUGH DEFAULT ';'// CFA1687 | fall_through_name 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: // CFA 1728 FALLTHRU 1729 | FALLTHROUGH 1725 1730 ; 1726 1731
Note:
See TracChangeset
for help on using the changeset viewer.