Changeset 0f15e3b
- Timestamp:
- Jan 30, 2023, 8:48:16 PM (22 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 8728104
- Parents:
- a5f9444
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
ra5f9444 r0f15e3b 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jan 30 19:19:22202313 // Update Count : 585 812 // Last Modified On : Mon Jan 30 20:47:27 2023 13 // Update Count : 5859 14 14 // 15 15 … … 2979 2979 TRAIT identifier_or_type_name '(' type_parameter_list ')' '{' '}' 2980 2980 { $$ = DeclarationNode::newTrait( $2, $4, nullptr ); } 2981 | FORALL '(' type_parameter_list ')' TRAIT identifier_or_type_name '{' '}' // alternate 2982 { $$ = DeclarationNode::newTrait( $6, $3, nullptr ); } 2981 2983 | TRAIT identifier_or_type_name '(' type_parameter_list ')' '{' push trait_declaration_list pop '}' 2982 2984 { $$ = DeclarationNode::newTrait( $2, $4, $8 ); } 2985 | FORALL '(' type_parameter_list ')' TRAIT identifier_or_type_name '{' push trait_declaration_list pop '}' // alternate 2986 { $$ = DeclarationNode::newTrait( $6, $3, $9 ); } 2983 2987 ; 2984 2988
Note: See TracChangeset
for help on using the changeset viewer.