Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r5fcba14 r481115f  
    10581058with_statement:
    10591059        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
    10631061        ;
    10641062
     
    24122410                { $$ = nullptr; }
    24132411        | WITH '(' tuple_expression_list ')'
    2414                 { $$ = new StatementNode( build_with( $3, nullptr ) ); }
     2412                { throw SemanticError("With clause is currently unimplemented."); $$ = nullptr; } // FIX ME
    24152413        ;
    24162414
     
    24222420                        // Add the function body to the last identifier in the function definition list, i.e., foo3:
    24232421                        //   [const double] foo1(), foo2( int ), foo3( double ) { return 3.0; }
    2424                         $1->get_last()->addFunctionBody( $3, $2 );
     2422                        $1->get_last()->addFunctionBody( $3 );
    24252423                        $$ = $1;
    24262424                }
     
    24302428                        typedefTable.addToEnclosingScope( TypedefTable::ID );
    24312429                        typedefTable.leaveScope();
    2432                         $$ = $2->addFunctionBody( $4, $3 )->addType( $1 );
     2430                        $$ = $2->addFunctionBody( $4 )->addType( $1 );
    24332431                }
    24342432                // handles default int return type, OBSOLESCENT (see 1)
     
    24372435                        typedefTable.addToEnclosingScope( TypedefTable::ID );
    24382436                        typedefTable.leaveScope();
    2439                         $$ = $2->addFunctionBody( $4, $3 )->addQualifiers( $1 );
     2437                        $$ = $2->addFunctionBody( $4 )->addQualifiers( $1 );
    24402438                }
    24412439                // handles default int return type, OBSOLESCENT (see 1)
     
    24442442                        typedefTable.addToEnclosingScope( TypedefTable::ID );
    24452443                        typedefTable.leaveScope();
    2446                         $$ = $2->addFunctionBody( $4, $3 )->addQualifiers( $1 );
     2444                        $$ = $2->addFunctionBody( $4 )->addQualifiers( $1 );
    24472445                }
    24482446                // handles default int return type, OBSOLESCENT (see 1)
     
    24512449                        typedefTable.addToEnclosingScope( TypedefTable::ID );
    24522450                        typedefTable.leaveScope();
    2453                         $$ = $3->addFunctionBody( $5, $4 )->addQualifiers( $2 )->addQualifiers( $1 );
     2451                        $$ = $3->addFunctionBody( $5 )->addQualifiers( $2 )->addQualifiers( $1 );
    24542452                }
    24552453
     
    24602458                        typedefTable.addToEnclosingScope( TypedefTable::ID );
    24612459                        typedefTable.leaveScope();
    2462                         $$ = $2->addOldDeclList( $3 )->addFunctionBody( $5, $4 )->addType( $1 );
     2460                        $$ = $2->addOldDeclList( $3 )->addFunctionBody( $5 )->addType( $1 );
    24632461                }
    24642462                // handles default int return type, OBSOLESCENT (see 1)
     
    24672465                        typedefTable.addToEnclosingScope( TypedefTable::ID );
    24682466                        typedefTable.leaveScope();
    2469                         $$ = $2->addOldDeclList( $3 )->addFunctionBody( $5, $4 )->addQualifiers( $1 );
     2467                        $$ = $2->addOldDeclList( $3 )->addFunctionBody( $5 )->addQualifiers( $1 );
    24702468                }
    24712469                // handles default int return type, OBSOLESCENT (see 1)
     
    24742472                        typedefTable.addToEnclosingScope( TypedefTable::ID );
    24752473                        typedefTable.leaveScope();
    2476                         $$ = $2->addOldDeclList( $3 )->addFunctionBody( $5, $4 )->addQualifiers( $1 );
     2474                        $$ = $2->addOldDeclList( $3 )->addFunctionBody( $5 )->addQualifiers( $1 );
    24772475                }
    24782476                // handles default int return type, OBSOLESCENT (see 1)
     
    24812479                        typedefTable.addToEnclosingScope( TypedefTable::ID );
    24822480                        typedefTable.leaveScope();
    2483                         $$ = $3->addOldDeclList( $4 )->addFunctionBody( $6, $5 )->addQualifiers( $2 )->addQualifiers( $1 );
     2481                        $$ = $3->addOldDeclList( $4 )->addFunctionBody( $6 )->addQualifiers( $2 )->addQualifiers( $1 );
    24842482                }
    24852483        ;
Note: See TracChangeset for help on using the changeset viewer.