Changeset 8bea701
- Timestamp:
- Mar 28, 2021, 10:59:56 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 9e234f0b
- Parents:
- fec3e9a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rfec3e9a r8bea701 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Mar 23 20:56:24 202113 // Update Count : 49 2912 // Last Modified On : Sun Mar 28 18:53:34 2021 13 // Update Count : 4940 14 14 // 15 15 … … 2226 2226 { $$ = DeclarationNode::newEnum( $3->name, $5, true )->addQualifiers( $2 ); } 2227 2227 | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt '{' enumerator_list comma_opt '}' 2228 // { SemanticError( yylloc, "Typed enumeration is currently unimplemented." ); $$ = nullptr; } 2229 { $$ = nullptr; } 2230 | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt identifier attribute_list_opt '{' enumerator_list comma_opt '}' 2231 // { SemanticError( yylloc, "Typed enumeration is currently unimplemented." ); $$ = nullptr; } 2232 { typedefTable.makeTypedef( *$6 ); } 2228 { 2229 if ( $3->storageClasses.val != 0 || $3->type->qualifiers.val != 0 ) { SemanticError( yylloc, "storage-class and CV qualifiers are not meaningful for constants." ); } 2230 SemanticError( yylloc, "Typed enumeration is currently unimplemented." ); $$ = nullptr; 2231 } 2232 | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt identifier attribute_list_opt 2233 { 2234 if ( $3->storageClasses.val != 0 || $3->type->qualifiers.val != 0 ) { SemanticError( yylloc, "storage-class and CV qualifiers are not meaningful for constants." ); } 2235 typedefTable.makeTypedef( *$6 ); 2236 } 2237 '{' enumerator_list comma_opt '}' 2238 { 2239 SemanticError( yylloc, "Typed enumeration is currently unimplemented." ); $$ = nullptr; 2240 } 2233 2241 | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt typedef_name attribute_list_opt '{' enumerator_list comma_opt '}' 2234 // { SemanticError( yylloc, "Typed enumeration is currently unimplemented." ); $$ = nullptr; } 2235 { typedefTable.makeTypedef( *$6->name ); } 2242 { 2243 if ( $3->storageClasses.val != 0 || $3->type->qualifiers.val != 0 ) { SemanticError( yylloc, "storage-class and CV qualifiers are not meaningful for constants." ); } 2244 typedefTable.makeTypedef( *$6->name ); 2245 SemanticError( yylloc, "Typed enumeration is currently unimplemented." ); $$ = nullptr; 2246 } 2236 2247 | enum_type_nobody 2237 2248 ;
Note: See TracChangeset
for help on using the changeset viewer.