Changes in / [ccb29b4:2ed94a9]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    rccb29b4 r2ed94a9  
    25872587                        $$ = DeclarationNode::newEnum( nullptr, $7, true, true, $3 )->addQualifiers( $5 );
    25882588                }
    2589         | ENUM '(' ')' attribute_list_opt '{' enumerator_list comma_opt '}'
    2590                 {
    2591                         $$ = DeclarationNode::newEnum( nullptr, $6, true, true )->addQualifiers( $4 );
    2592                 }
    25932589        | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt identifier attribute_list_opt
    25942590                {
     
    26002596                        $$ = DeclarationNode::newEnum( $6, $11, true, true, $3, $9 )->addQualifiers( $5 )->addQualifiers( $7 );
    26012597                }
    2602         | ENUM '(' ')' attribute_list_opt identifier attribute_list_opt
    2603           hide_opt '{' enumerator_list comma_opt '}'
    2604                 {
    2605                         $$ = DeclarationNode::newEnum( $5, $9, true, true, nullptr, $7 )->addQualifiers( $4 )->addQualifiers( $6 );
    2606                 }
    26072598        | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt typedef_name attribute_list_opt
    26082599          hide_opt '{' enumerator_list comma_opt '}'
    26092600                {
    26102601                        $$ = DeclarationNode::newEnum( $6->name, $10, true, true, $3, $8 )->addQualifiers( $5 )->addQualifiers( $7 );
    2611                 }
    2612         | ENUM '(' ')' attribute_list_opt typedef_name attribute_list_opt
    2613           hide_opt '{' enumerator_list comma_opt '}'
    2614                 {
    2615                         $$ = DeclarationNode::newEnum( $5->name, $9, true, true, nullptr, $7 )->addQualifiers( $4 )->addQualifiers( $6 );
    26162602                }
    26172603        | enum_type_nobody
     
    27262712
    27272713cfa_abstract_parameter_declaration:                                             // CFA, new & old style parameter declaration
    2728         abstract_parameter_declaration
     2714        // empty
     2715                { $$ = nullptr; }
     2716        | abstract_parameter_declaration
    27292717        | cfa_identifier_parameter_declarator_no_tuple
    27302718        | cfa_abstract_tuple
Note: See TracChangeset for help on using the changeset viewer.