- Timestamp:
- Feb 25, 2023, 3:38:51 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 2d028003
- Parents:
- be00a2d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/Parser/parser.yy ¶
rbe00a2d r3d937e2 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Feb 25 09:52:06 202313 // Update Count : 598 612 // Last Modified On : Sat Feb 25 13:23:16 2023 13 // Update Count : 5989 14 14 // 15 15 … … 1280 1280 { 1281 1281 $$ = new StatementNode( build_while( new CondCtl( nullptr, NEW_ONE ), maybe_build_compound( $4 ) ) ); 1282 SemanticWarning( yylloc, Warning::SuperfluousElse , "");1282 SemanticWarning( yylloc, Warning::SuperfluousElse ); 1283 1283 } 1284 1284 | WHILE '(' conditional_declaration ')' statement %prec THEN … … 1291 1291 { 1292 1292 $$ = new StatementNode( build_do_while( NEW_ONE, maybe_build_compound( $2 ) ) ); 1293 SemanticWarning( yylloc, Warning::SuperfluousElse , "");1293 SemanticWarning( yylloc, Warning::SuperfluousElse ); 1294 1294 } 1295 1295 | DO statement WHILE '(' comma_expression ')' ';' … … 1302 1302 { 1303 1303 $$ = new StatementNode( build_for( new ForCtrl( (ExpressionNode * )nullptr, (ExpressionNode * )nullptr, (ExpressionNode * )nullptr ), maybe_build_compound( $4 ) ) ); 1304 SemanticWarning( yylloc, Warning::SuperfluousElse , "");1304 SemanticWarning( yylloc, Warning::SuperfluousElse ); 1305 1305 } 1306 1306 | FOR '(' for_control_expression_list ')' statement %prec THEN … … 2990 2990 TRAIT identifier_or_type_name '(' type_parameter_list ')' '{' '}' 2991 2991 { 2992 SemanticWarning( yylloc, Warning::DeprecTraitSyntax , "");2992 SemanticWarning( yylloc, Warning::DeprecTraitSyntax ); 2993 2993 $$ = DeclarationNode::newTrait( $2, $4, nullptr ); 2994 2994 } … … 2997 2997 | TRAIT identifier_or_type_name '(' type_parameter_list ')' '{' push trait_declaration_list pop '}' 2998 2998 { 2999 SemanticWarning( yylloc, Warning::DeprecTraitSyntax , "");2999 SemanticWarning( yylloc, Warning::DeprecTraitSyntax ); 3000 3000 $$ = DeclarationNode::newTrait( $2, $4, $8 ); 3001 3001 }
Note: See TracChangeset
for help on using the changeset viewer.