Changeset 8a97248 for src/Parser
- Timestamp:
- Feb 3, 2023, 1:28:36 PM (20 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 2125443a
- Parents:
- 7a24d76
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r7a24d76 r8a97248 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T ue Jan 31 08:55:11202313 // Update Count : 586 112 // Last Modified On : Thu Feb 2 21:36:16 2023 13 // Update Count : 5865 14 14 // 15 15 … … 2979 2979 trait_specifier: // CFA 2980 2980 TRAIT identifier_or_type_name '(' type_parameter_list ')' '{' '}' 2981 { $$ = DeclarationNode::newTrait( $2, $4, nullptr ); } 2982 | forall TRAIT identifier_or_type_name '{' '}' // alternate 2981 { 2982 SemanticWarning( yylloc, Warning::DeprecTraitSyntax, "" ); 2983 $$ = DeclarationNode::newTrait( $2, $4, nullptr ); 2984 } 2985 | forall TRAIT identifier_or_type_name '{' '}' // alternate 2983 2986 { $$ = DeclarationNode::newTrait( $3, $1, nullptr ); } 2984 2987 | TRAIT identifier_or_type_name '(' type_parameter_list ')' '{' push trait_declaration_list pop '}' 2985 { $$ = DeclarationNode::newTrait( $2, $4, $8 ); } 2988 { 2989 SemanticWarning( yylloc, Warning::DeprecTraitSyntax, "" ); 2990 $$ = DeclarationNode::newTrait( $2, $4, $8 ); 2991 } 2986 2992 | forall TRAIT identifier_or_type_name '{' push trait_declaration_list pop '}' // alternate 2987 2993 { $$ = DeclarationNode::newTrait( $3, $1, $6 ); }
Note: See TracChangeset
for help on using the changeset viewer.