Changes in / [f11010e:9f1beb4]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    rf11010e r9f1beb4  
    26872687                        $$ = DeclarationNode::newEnum( nullptr, $7, true, true, $3 )->addQualifiers( $5 );
    26882688                }
     2689        | ENUM '(' ')' attribute_list_opt '{' enumerator_list comma_opt '}'
     2690                {
     2691                        $$ = DeclarationNode::newEnum( nullptr, $6, true, true )->addQualifiers( $4 );
     2692                }
    26892693        | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt identifier attribute_list_opt
    26902694                {
     
    26962700                        $$ = DeclarationNode::newEnum( $6, $11, true, true, $3, $9 )->addQualifiers( $5 )->addQualifiers( $7 );
    26972701                }
     2702        | ENUM '(' ')' attribute_list_opt identifier attribute_list_opt
     2703          hide_opt '{' enumerator_list comma_opt '}'
     2704                {
     2705                        $$ = DeclarationNode::newEnum( $5, $9, true, true, nullptr, $7 )->addQualifiers( $4 )->addQualifiers( $6 );
     2706                }
    26982707        | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt typedef_name attribute_list_opt
    26992708          hide_opt '{' enumerator_list comma_opt '}'
    27002709                {
    27012710                        $$ = DeclarationNode::newEnum( $6->name, $10, true, true, $3, $8 )->addQualifiers( $5 )->addQualifiers( $7 );
     2711                }
     2712        | ENUM '(' ')' attribute_list_opt typedef_name attribute_list_opt
     2713          hide_opt '{' enumerator_list comma_opt '}'
     2714                {
     2715                        $$ = DeclarationNode::newEnum( $5->name, $9, true, true, nullptr, $7 )->addQualifiers( $4 )->addQualifiers( $6 );
    27022716                }
    27032717        | enum_type_nobody
     
    28122826
    28132827cfa_abstract_parameter_declaration:                                             // CFA, new & old style parameter declaration
    2814         // empty
    2815                 { $$ = nullptr; }
    2816         | abstract_parameter_declaration
     2828        abstract_parameter_declaration
    28172829        | cfa_identifier_parameter_declarator_no_tuple
    28182830        | cfa_abstract_tuple
Note: See TracChangeset for help on using the changeset viewer.