Changeset 997185e
- Timestamp:
- Feb 8, 2023, 2:27:43 PM (22 months ago)
- Branches:
- ADT, master
- Children:
- 2ed94a9
- Parents:
- d61d034
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rd61d034 r997185e 2569 2569 $$ = DeclarationNode::newEnum( nullptr, $7, true, true, $3 )->addQualifiers( $5 ); 2570 2570 } 2571 | ENUM '(' ')' attribute_list_opt '{' enumerator_list comma_opt '}'2572 {2573 $$ = DeclarationNode::newEnum( nullptr, $6, true, true )->addQualifiers( $4 );2574 }2575 2571 | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt identifier attribute_list_opt 2576 2572 { … … 2582 2578 $$ = DeclarationNode::newEnum( $6, $11, true, true, $3, $9 )->addQualifiers( $5 )->addQualifiers( $7 ); 2583 2579 } 2584 | ENUM '(' ')' attribute_list_opt identifier attribute_list_opt2585 hide_opt '{' enumerator_list comma_opt '}'2586 {2587 $$ = DeclarationNode::newEnum( $5, $9, true, true, nullptr, $7 )->addQualifiers( $4 )->addQualifiers( $6 );2588 }2589 2580 | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt typedef_name attribute_list_opt 2590 2581 hide_opt '{' enumerator_list comma_opt '}' 2591 2582 { 2592 2583 $$ = DeclarationNode::newEnum( $6->name, $10, true, true, $3, $8 )->addQualifiers( $5 )->addQualifiers( $7 ); 2593 }2594 | ENUM '(' ')' attribute_list_opt typedef_name attribute_list_opt2595 hide_opt '{' enumerator_list comma_opt '}'2596 {2597 $$ = DeclarationNode::newEnum( $5->name, $9, true, true, nullptr, $7 )->addQualifiers( $4 )->addQualifiers( $6 );2598 2584 } 2599 2585 | enum_type_nobody … … 2708 2694 2709 2695 cfa_abstract_parameter_declaration: // CFA, new & old style parameter declaration 2710 abstract_parameter_declaration 2696 // empty 2697 { $$ = nullptr; } 2698 | abstract_parameter_declaration 2711 2699 | cfa_identifier_parameter_declarator_no_tuple 2712 2700 | cfa_abstract_tuple
Note: See TracChangeset
for help on using the changeset viewer.