Changeset 569b118 for src/Parser/parser.yy
- Timestamp:
- Sep 24, 2024, 7:35:48 AM (6 weeks ago)
- Branches:
- master
- Children:
- 7a0e8c8, c82dad4
- Parents:
- 738a9b4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r738a9b4 r569b118 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Sep 12 22:48:32 202413 // Update Count : 67 4112 // Last Modified On : Mon Sep 23 22:47:42 2024 13 // Update Count : 6753 14 14 // 15 15 … … 332 332 333 333 // Special "nodes" containing compound information. 334 CondCt l * ifctl;335 ForCtrl * forct l;334 CondCtrl * ifctrl; 335 ForCtrl * forctrl; 336 336 LabelNode * labels; 337 337 … … 433 433 %type<expr> comma_expression comma_expression_opt 434 434 %type<expr> argument_expression_list_opt argument_expression_list argument_expression default_initializer_opt 435 %type<ifct l> conditional_declaration436 %type<forct l> for_control_expression for_control_expression_list435 %type<ifctrl> conditional_declaration 436 %type<forctrl> for_control_expression for_control_expression_list 437 437 %type<oper> upupeq updown updowneq downupdowneq 438 438 %type<expr> subrange … … 1336 1336 conditional_declaration: 1337 1337 comma_expression 1338 { $$ = new CondCt l( nullptr, $1 ); }1338 { $$ = new CondCtrl( nullptr, $1 ); } 1339 1339 | c_declaration // no semi-colon 1340 { $$ = new CondCt l( $1, nullptr ); }1340 { $$ = new CondCtrl( $1, nullptr ); } 1341 1341 | cfa_declaration // no semi-colon 1342 { $$ = new CondCt l( $1, nullptr ); }1342 { $$ = new CondCtrl( $1, nullptr ); } 1343 1343 | declaration comma_expression // semi-colon separated 1344 { $$ = new CondCt l( $1, $2 ); }1344 { $$ = new CondCtrl( $1, $2 ); } 1345 1345 ; 1346 1346 … … 1397 1397 iteration_statement: 1398 1398 WHILE '(' ')' statement %prec THEN // CFA => while ( 1 ) 1399 { $$ = new StatementNode( build_while( yylloc, new CondCt l( nullptr, NEW_ONE ), maybe_build_compound( yylloc, $4 ) ) ); }1399 { $$ = new StatementNode( build_while( yylloc, new CondCtrl( nullptr, NEW_ONE ), maybe_build_compound( yylloc, $4 ) ) ); } 1400 1400 | WHILE '(' ')' statement ELSE statement // CFA 1401 1401 { 1402 $$ = new StatementNode( build_while( yylloc, new CondCt l( nullptr, NEW_ONE ), maybe_build_compound( yylloc, $4 ) ) );1402 $$ = new StatementNode( build_while( yylloc, new CondCtrl( nullptr, NEW_ONE ), maybe_build_compound( yylloc, $4 ) ) ); 1403 1403 SemanticWarning( yylloc, Warning::SuperfluousElse ); 1404 1404 } … … 1561 1561 { SemanticError( yylloc, "illegal syntax, missing low/high value for ascending/descending range so index is uninitialized." ); $$ = nullptr; } 1562 1562 1563 // | '@' identifier ';' comma_expression // CFA 1563 1564 | declaration comma_expression // CFA 1564 1565 { $$ = forCtrl( yylloc, $1, NEW_ZERO, OperKinds::LThan, $2, NEW_ONE ); } … … 2381 2382 | FLOAT128 2382 2383 { $$ = build_basic_type( TypeData::Float128 ); } 2384 // https://developer.arm.com/documentation/den0018/a/NEON-Intrinsics/Accessing-vector-types-from-C 2383 2385 | FLOAT128X 2384 2386 { $$ = build_basic_type( TypeData::Float128x ); }
Note: See TracChangeset
for help on using the changeset viewer.