Changes in src/Parser/parser.yy [ca33b15:8bea701]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rca33b15 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 30 18:39:23202113 // Update Count : 49 6512 // Last Modified On : Sun Mar 28 18:53:34 2021 13 // Update Count : 4940 14 14 // 15 15 … … 1236 1236 | comma_expression ';' comma_expression inclexcl comma_expression '~' comma_expression // CFA 1237 1237 { $$ = forCtrl( $3, $1, $3->clone(), $4, $5, $7 ); } 1238 1239 | comma_expression ';' TYPEDEFname // CFA, array type1240 {1241 SemanticError( yylloc, "Array interator is currently unimplemented." ); $$ = nullptr;1242 $$ = forCtrl( new ExpressionNode( build_varref( $3 ) ), $1, nullptr, OperKinds::Range, nullptr, nullptr );1243 }1244 1238 1245 1239 // There is a S/R conflicit if ~ and -~ are factored out. … … 2233 2227 | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt '{' enumerator_list comma_opt '}' 2234 2228 { 2235 if ( $3->storageClasses.val != 0 || $3->type->qualifiers.val != 0 ) { SemanticError( yylloc, "storage-class and CV qualifiers are not meaningful for enumeration constants, which are const." ); }2229 if ( $3->storageClasses.val != 0 || $3->type->qualifiers.val != 0 ) { SemanticError( yylloc, "storage-class and CV qualifiers are not meaningful for constants." ); } 2236 2230 SemanticError( yylloc, "Typed enumeration is currently unimplemented." ); $$ = nullptr; 2237 2231 } 2238 2232 | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt identifier attribute_list_opt 2239 2233 { 2240 if ( $3->storageClasses.val != 0 || $3->type->qualifiers.val != 0 ) { SemanticError( yylloc, "storage-class and CV qualifiers are not meaningful for enumeration constants, which are const." ); }2234 if ( $3->storageClasses.val != 0 || $3->type->qualifiers.val != 0 ) { SemanticError( yylloc, "storage-class and CV qualifiers are not meaningful for constants." ); } 2241 2235 typedefTable.makeTypedef( *$6 ); 2242 2236 } … … 2247 2241 | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt typedef_name attribute_list_opt '{' enumerator_list comma_opt '}' 2248 2242 { 2249 if ( $3->storageClasses.val != 0 || $3->type->qualifiers.val != 0 ) { SemanticError( yylloc, "storage-class and CV qualifiers are not meaningful for enumeration constants, which are const." ); }2243 if ( $3->storageClasses.val != 0 || $3->type->qualifiers.val != 0 ) { SemanticError( yylloc, "storage-class and CV qualifiers are not meaningful for constants." ); } 2250 2244 typedefTable.makeTypedef( *$6->name ); 2251 2245 SemanticError( yylloc, "Typed enumeration is currently unimplemented." ); $$ = nullptr;
Note: See TracChangeset
for help on using the changeset viewer.