Changes in / [f11010e:9f1beb4]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rf11010e r9f1beb4 2687 2687 $$ = DeclarationNode::newEnum( nullptr, $7, true, true, $3 )->addQualifiers( $5 ); 2688 2688 } 2689 | ENUM '(' ')' attribute_list_opt '{' enumerator_list comma_opt '}' 2690 { 2691 $$ = DeclarationNode::newEnum( nullptr, $6, true, true )->addQualifiers( $4 ); 2692 } 2689 2693 | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt identifier attribute_list_opt 2690 2694 { … … 2696 2700 $$ = DeclarationNode::newEnum( $6, $11, true, true, $3, $9 )->addQualifiers( $5 )->addQualifiers( $7 ); 2697 2701 } 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 } 2698 2707 | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt typedef_name attribute_list_opt 2699 2708 hide_opt '{' enumerator_list comma_opt '}' 2700 2709 { 2701 2710 $$ = 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 ); 2702 2716 } 2703 2717 | enum_type_nobody … … 2812 2826 2813 2827 cfa_abstract_parameter_declaration: // CFA, new & old style parameter declaration 2814 // empty 2815 { $$ = nullptr; } 2816 | abstract_parameter_declaration 2828 abstract_parameter_declaration 2817 2829 | cfa_identifier_parameter_declarator_no_tuple 2818 2830 | cfa_abstract_tuple
Note: See TracChangeset
for help on using the changeset viewer.