Changeset 997185e for src


Ignore:
Timestamp:
Feb 8, 2023, 2:27:43 PM (20 months ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT, master
Children:
2ed94a9
Parents:
d61d034
Message:

Save parser change for git pull

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    rd61d034 r997185e  
    25692569                        $$ = DeclarationNode::newEnum( nullptr, $7, true, true, $3 )->addQualifiers( $5 );
    25702570                }
    2571         | ENUM '(' ')' attribute_list_opt '{' enumerator_list comma_opt '}'
    2572                 {
    2573                         $$ = DeclarationNode::newEnum( nullptr, $6, true, true )->addQualifiers( $4 );
    2574                 }
    25752571        | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt identifier attribute_list_opt
    25762572                {
     
    25822578                        $$ = DeclarationNode::newEnum( $6, $11, true, true, $3, $9 )->addQualifiers( $5 )->addQualifiers( $7 );
    25832579                }
    2584         | ENUM '(' ')' attribute_list_opt identifier attribute_list_opt
    2585           hide_opt '{' enumerator_list comma_opt '}'
    2586                 {
    2587                         $$ = DeclarationNode::newEnum( $5, $9, true, true, nullptr, $7 )->addQualifiers( $4 )->addQualifiers( $6 );
    2588                 }
    25892580        | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt typedef_name attribute_list_opt
    25902581          hide_opt '{' enumerator_list comma_opt '}'
    25912582                {
    25922583                        $$ = DeclarationNode::newEnum( $6->name, $10, true, true, $3, $8 )->addQualifiers( $5 )->addQualifiers( $7 );
    2593                 }
    2594         | ENUM '(' ')' attribute_list_opt typedef_name attribute_list_opt
    2595           hide_opt '{' enumerator_list comma_opt '}'
    2596                 {
    2597                         $$ = DeclarationNode::newEnum( $5->name, $9, true, true, nullptr, $7 )->addQualifiers( $4 )->addQualifiers( $6 );
    25982584                }
    25992585        | enum_type_nobody
     
    27082694
    27092695cfa_abstract_parameter_declaration:                                             // CFA, new & old style parameter declaration
    2710         abstract_parameter_declaration
     2696        // empty
     2697                { $$ = nullptr; }
     2698        | abstract_parameter_declaration
    27112699        | cfa_identifier_parameter_declarator_no_tuple
    27122700        | cfa_abstract_tuple
Note: See TracChangeset for help on using the changeset viewer.