Changes in src/Parser/parser.yy [5fcba14:481115f]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r5fcba14 r481115f 1058 1058 with_statement: 1059 1059 WITH '(' tuple_expression_list ')' statement 1060 { 1061 $$ = new StatementNode( build_with( $3, $5 ) ); 1062 } 1060 { throw SemanticError("With clause is currently unimplemented."); $$ = nullptr; } // FIX ME 1063 1061 ; 1064 1062 … … 2412 2410 { $$ = nullptr; } 2413 2411 | WITH '(' tuple_expression_list ')' 2414 { $$ = new StatementNode( build_with( $3, nullptr ) ); }2412 { throw SemanticError("With clause is currently unimplemented."); $$ = nullptr; } // FIX ME 2415 2413 ; 2416 2414 … … 2422 2420 // Add the function body to the last identifier in the function definition list, i.e., foo3: 2423 2421 // [const double] foo1(), foo2( int ), foo3( double ) { return 3.0; } 2424 $1->get_last()->addFunctionBody( $3 , $2);2422 $1->get_last()->addFunctionBody( $3 ); 2425 2423 $$ = $1; 2426 2424 } … … 2430 2428 typedefTable.addToEnclosingScope( TypedefTable::ID ); 2431 2429 typedefTable.leaveScope(); 2432 $$ = $2->addFunctionBody( $4 , $3)->addType( $1 );2430 $$ = $2->addFunctionBody( $4 )->addType( $1 ); 2433 2431 } 2434 2432 // handles default int return type, OBSOLESCENT (see 1) … … 2437 2435 typedefTable.addToEnclosingScope( TypedefTable::ID ); 2438 2436 typedefTable.leaveScope(); 2439 $$ = $2->addFunctionBody( $4 , $3)->addQualifiers( $1 );2437 $$ = $2->addFunctionBody( $4 )->addQualifiers( $1 ); 2440 2438 } 2441 2439 // handles default int return type, OBSOLESCENT (see 1) … … 2444 2442 typedefTable.addToEnclosingScope( TypedefTable::ID ); 2445 2443 typedefTable.leaveScope(); 2446 $$ = $2->addFunctionBody( $4 , $3)->addQualifiers( $1 );2444 $$ = $2->addFunctionBody( $4 )->addQualifiers( $1 ); 2447 2445 } 2448 2446 // handles default int return type, OBSOLESCENT (see 1) … … 2451 2449 typedefTable.addToEnclosingScope( TypedefTable::ID ); 2452 2450 typedefTable.leaveScope(); 2453 $$ = $3->addFunctionBody( $5 , $4)->addQualifiers( $2 )->addQualifiers( $1 );2451 $$ = $3->addFunctionBody( $5 )->addQualifiers( $2 )->addQualifiers( $1 ); 2454 2452 } 2455 2453 … … 2460 2458 typedefTable.addToEnclosingScope( TypedefTable::ID ); 2461 2459 typedefTable.leaveScope(); 2462 $$ = $2->addOldDeclList( $3 )->addFunctionBody( $5 , $4)->addType( $1 );2460 $$ = $2->addOldDeclList( $3 )->addFunctionBody( $5 )->addType( $1 ); 2463 2461 } 2464 2462 // handles default int return type, OBSOLESCENT (see 1) … … 2467 2465 typedefTable.addToEnclosingScope( TypedefTable::ID ); 2468 2466 typedefTable.leaveScope(); 2469 $$ = $2->addOldDeclList( $3 )->addFunctionBody( $5 , $4)->addQualifiers( $1 );2467 $$ = $2->addOldDeclList( $3 )->addFunctionBody( $5 )->addQualifiers( $1 ); 2470 2468 } 2471 2469 // handles default int return type, OBSOLESCENT (see 1) … … 2474 2472 typedefTable.addToEnclosingScope( TypedefTable::ID ); 2475 2473 typedefTable.leaveScope(); 2476 $$ = $2->addOldDeclList( $3 )->addFunctionBody( $5 , $4)->addQualifiers( $1 );2474 $$ = $2->addOldDeclList( $3 )->addFunctionBody( $5 )->addQualifiers( $1 ); 2477 2475 } 2478 2476 // handles default int return type, OBSOLESCENT (see 1) … … 2481 2479 typedefTable.addToEnclosingScope( TypedefTable::ID ); 2482 2480 typedefTable.leaveScope(); 2483 $$ = $3->addOldDeclList( $4 )->addFunctionBody( $6 , $5)->addQualifiers( $2 )->addQualifiers( $1 );2481 $$ = $3->addOldDeclList( $4 )->addFunctionBody( $6 )->addQualifiers( $2 )->addQualifiers( $1 ); 2484 2482 } 2485 2483 ;
Note:
See TracChangeset
for help on using the changeset viewer.