Ignore:
Timestamp:
Jan 18, 2025, 3:46:06 PM (9 months ago)
Author:
Peter A. Buhr <pabuhr@…>
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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    rfa59c40 r8e90fd6  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Dec 15 21:30:38 2024
    13 // Update Count     : 6933
     12// Last Modified On : Fri Jan 17 14:35:08 2025
     13// Update Count     : 6935
    1414//
    1515
     
    377377%token ATTRIBUTE EXTENSION                                                              // GCC
    378378%token IF ELSE SWITCH CASE DEFAULT DO WHILE FOR BREAK CONTINUE GOTO RETURN
    379 %token CHOOSE FALLTHRU FALLTHROUGH WITH WHEN WAITFOR WAITUNTIL // CFA
     379%token CHOOSE FALLTHROUGH WITH WHEN WAITFOR WAITUNTIL   // CFA
    380380%token CORUN COFOR
    381381%token DISABLE ENABLE TRY THROW THROWRESUME AT                  // CFA
     
    16801680                // whereas normal operator precedence yields goto (*i)+3;
    16811681                { $$ = new StatementNode( build_computedgoto( $3 ) ); }
    1682                 // A semantic check is required to ensure fallthru appears only in the body of a choose statement.
    1683         | fall_through_name ';'                                                         // CFA
     1682                // A semantic check is required to ensure fallthrough appears only in the body of a choose statement.
     1683        | FALLTHROUGH ';'                                                                       // CFA
    16841684                { $$ = new StatementNode( build_branch( yylloc, ast::BranchStmt::FallThrough ) ); }
    1685         | fall_through_name identifier_or_type_name ';'         // CFA
     1685        | FALLTHROUGH identifier_or_type_name ';'                       // CFA
    16861686                { $$ = new StatementNode( build_branch( yylloc, $2, ast::BranchStmt::FallThrough ) ); }
    1687         | fall_through_name DEFAULT ';'                                         // CFA
     1687        | FALLTHROUGH DEFAULT ';'                                                       // CFA
    16881688                { $$ = new StatementNode( build_branch( yylloc, ast::BranchStmt::FallThroughDefault ) ); }
    16891689        | CONTINUE ';'
     
    17231723        | THROWRESUME assignment_expression_opt AT assignment_expression ';' // handles reresume
    17241724                { $$ = new StatementNode( build_resume_at( $2, $4 ) ); }
    1725         ;
    1726 
    1727 fall_through_name:                                                                              // CFA
    1728         FALLTHRU
    1729         | FALLTHROUGH
    17301725        ;
    17311726
Note: See TracChangeset for help on using the changeset viewer.