Changes in / [6e4c44d:e6d8d11]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r6e4c44d re6d8d11  
    26792679                        $$ = DeclarationNode::newEnum( nullptr, $7, true, true, $3 )->addQualifiers( $5 );
    26802680                }
     2681        | ENUM '(' ')' attribute_list_opt '{' enumerator_list comma_opt '}'
     2682                {
     2683                        $$ = DeclarationNode::newEnum( nullptr, $6, true, true )->addQualifiers( $4 );
     2684                }
    26812685        | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt identifier attribute_list_opt
    26822686                {
     
    26882692                        $$ = DeclarationNode::newEnum( $6, $11, true, true, $3, $9 )->addQualifiers( $5 )->addQualifiers( $7 );
    26892693                }
     2694        | ENUM '(' ')' attribute_list_opt identifier attribute_list_opt
     2695          hide_opt '{' enumerator_list comma_opt '}'
     2696                {
     2697                        $$ = DeclarationNode::newEnum( $5, $9, true, true, nullptr, $7 )->addQualifiers( $4 )->addQualifiers( $6 );
     2698                }
    26902699        | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt typedef_name attribute_list_opt
    26912700          hide_opt '{' enumerator_list comma_opt '}'
    26922701                {
    26932702                        $$ = DeclarationNode::newEnum( $6->name, $10, true, true, $3, $8 )->addQualifiers( $5 )->addQualifiers( $7 );
     2703                }
     2704        | ENUM '(' ')' attribute_list_opt typedef_name attribute_list_opt
     2705          hide_opt '{' enumerator_list comma_opt '}'
     2706                {
     2707                        $$ = DeclarationNode::newEnum( $5->name, $9, true, true, nullptr, $7 )->addQualifiers( $4 )->addQualifiers( $6 );
    26942708                }
    26952709        | enum_type_nobody
     
    28042818
    28052819cfa_abstract_parameter_declaration:                                             // CFA, new & old style parameter declaration
    2806         // empty
    2807                 { $$ = nullptr; }
    2808         | abstract_parameter_declaration
     2820        abstract_parameter_declaration
    28092821        | cfa_identifier_parameter_declarator_no_tuple
    28102822        | cfa_abstract_tuple
Note: See TracChangeset for help on using the changeset viewer.