Changeset aa122e9
- Timestamp:
- Aug 27, 2022, 1:22:03 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 507d48d, ebf8ca5
- Parents:
- 51fbba5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r51fbba5 raa122e9 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Aug 27 13: 18:01202213 // Update Count : 56 5912 // Last Modified On : Sat Aug 27 13:21:28 2022 13 // Update Count : 5661 14 14 // 15 15 … … 1325 1325 { $$ = new ForCtrl( $1, $2, $4 ); } 1326 1326 1327 | '@' ';' comma_expression // CFA, empty loop 1327 | '@' ';' comma_expression // CFA, empty loop-index 1328 1328 { $$ = new ForCtrl( (ExpressionNode *)nullptr, $3, nullptr ); } 1329 | '@' ';' comma_expression ';' comma_expression diff // CFA, empty loopindex1329 | '@' ';' comma_expression ';' comma_expression // CFA, empty loop-index 1330 1330 { $$ = new ForCtrl( (ExpressionNode *)nullptr, $3, $5 ); } 1331 1331 1332 | comma_expression // CFA 1332 | comma_expression // CFA, anonymous loop-index 1333 1333 { $$ = forCtrl( $1, new string( DeclarationNode::anonymous.newName() ), NEW_ZERO, OperKinds::LThan, $1->clone(), NEW_ONE ); } 1334 | downupdowneq comma_expression // CFA 1334 | downupdowneq comma_expression // CFA, anonymous loop-index 1335 1335 { $$ = forCtrl( $2, new string( DeclarationNode::anonymous.newName() ), UPDOWN( $1, NEW_ZERO, $2->clone() ), $1, UPDOWN( $1, $2->clone(), NEW_ZERO ), NEW_ONE ); } 1336 1336 1337 | comma_expression updowneq comma_expression // CFA 1337 | comma_expression updowneq comma_expression // CFA, anonymous loop-index 1338 1338 { $$ = forCtrl( $1, new string( DeclarationNode::anonymous.newName() ), UPDOWN( $2, $1->clone(), $3 ), $2, UPDOWN( $2, $3->clone(), $1->clone() ), NEW_ONE ); } 1339 | '@' updowneq comma_expression // CFA 1339 | '@' updowneq comma_expression // CFA, anonymous loop-index 1340 1340 { 1341 1341 if ( $2 == OperKinds::LThan || $2 == OperKinds::LEThan ) { SemanticError( yylloc, MISSING_LOW ); $$ = nullptr; } 1342 1342 else $$ = forCtrl( $3, new string( DeclarationNode::anonymous.newName() ), $3->clone(), $2, nullptr, NEW_ONE ); 1343 1343 } 1344 | comma_expression updowneq '@' // CFA 1344 | comma_expression updowneq '@' // CFA, anonymous loop-index 1345 1345 { 1346 1346 if ( $2 == OperKinds::LThan || $2 == OperKinds::LEThan ) { SemanticError( yylloc, MISSING_ANON_FIELD ); $$ = nullptr; } 1347 1347 else { SemanticError( yylloc, MISSING_HIGH ); $$ = nullptr; } 1348 1348 } 1349 | comma_expression updowneq comma_expression '~' comma_expression // CFA 1349 | comma_expression updowneq comma_expression '~' comma_expression // CFA, anonymous loop-index 1350 1350 { $$ = forCtrl( $1, new string( DeclarationNode::anonymous.newName() ), UPDOWN( $2, $1->clone(), $3 ), $2, UPDOWN( $2, $3->clone(), $1->clone() ), $5 ); } 1351 | '@' updowneq comma_expression '~' comma_expression // CFA 1351 | '@' updowneq comma_expression '~' comma_expression // CFA, anonymous loop-index 1352 1352 { 1353 1353 if ( $2 == OperKinds::LThan || $2 == OperKinds::LEThan ) { SemanticError( yylloc, MISSING_LOW ); $$ = nullptr; } 1354 1354 else $$ = forCtrl( $3, new string( DeclarationNode::anonymous.newName() ), $3->clone(), $2, nullptr, $5 ); 1355 1355 } 1356 | comma_expression updowneq '@' '~' comma_expression // CFA 1356 | comma_expression updowneq '@' '~' comma_expression // CFA, anonymous loop-index 1357 1357 { 1358 1358 if ( $2 == OperKinds::LThan || $2 == OperKinds::LEThan ) { SemanticError( yylloc, MISSING_ANON_FIELD ); $$ = nullptr; }
Note: See TracChangeset
for help on using the changeset viewer.