Changes in / [2ed94a9:ccb29b4]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r2ed94a9 rccb29b4  
    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                }
    25892593        | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt identifier attribute_list_opt
    25902594                {
     
    25962600                        $$ = DeclarationNode::newEnum( $6, $11, true, true, $3, $9 )->addQualifiers( $5 )->addQualifiers( $7 );
    25972601                }
     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                }
    25982607        | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt typedef_name attribute_list_opt
    25992608          hide_opt '{' enumerator_list comma_opt '}'
    26002609                {
    26012610                        $$ = 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 );
    26022616                }
    26032617        | enum_type_nobody
     
    27122726
    27132727cfa_abstract_parameter_declaration:                                             // CFA, new & old style parameter declaration
    2714         // empty
    2715                 { $$ = nullptr; }
    2716         | abstract_parameter_declaration
     2728        abstract_parameter_declaration
    27172729        | cfa_identifier_parameter_declarator_no_tuple
    27182730        | cfa_abstract_tuple
Note: See TracChangeset for help on using the changeset viewer.