Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r3007c0b r8f91c9ae  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Jul 11 11:55:24 2018
    13 // Update Count     : 3739
     12// Last Modified On : Thu Jul 12 13:47:44 2018
     13// Update Count     : 3755
    1414//
    1515
     
    19361936        | EXTENSION type_specifier field_declaring_list ';'     // GCC
    19371937                { distExt( $3 ); $$ = distAttr( $2, $3 ); }             // mark all fields in list
     1938        | INLINE type_specifier field_declaring_list ';'        // CFA
     1939                {
     1940                        if ( $2->type && ( $2->type->kind == TypeData::Aggregate || $2->type->kind == TypeData::AggregateInst ) ) {
     1941                                if ( $2->type->kind == TypeData::Aggregate ) {
     1942                                        $2->type->aggregate.inLine = true;
     1943                                } else {
     1944                                        $2->type->aggInst.inLine = true;
     1945                                } // if
     1946                                $$ = distAttr( $2, $3 );
     1947                        } else {
     1948                                SemanticError( yylloc, "inline qualifier only allowed for aggregate field declarations." ); $$ = nullptr;
     1949                        } // if
     1950                }
    19381951        | typedef_declaration ';'                                                       // CFA
    19391952        | cfa_field_declaring_list ';'                                          // CFA, new style field declaration
     
    22942307                { $$ = new ExpressionNode( new TypeExpr( maybeMoveBuildType( $1 ) ) ); }
    22952308        | assignment_expression
    2296                 { SemanticError( yylloc, toString("Expression generic parameters are currently unimplemented: ", $1->build()) ); $$ = nullptr; }
    22972309        | type_list ',' type
    22982310                { $$ = (ExpressionNode *)( $1->set_last( new ExpressionNode( new TypeExpr( maybeMoveBuildType( $3 ) ) ) ) ); }
    22992311        | type_list ',' assignment_expression
    2300                 { SemanticError( yylloc, toString("Expression generic parameters are currently unimplemented: ", $3->build()) ); $$ = nullptr; }
    2301                 // { $$ = (ExpressionNode *)( $1->set_last( $3 )); }
     2312                { $$ = (ExpressionNode *)( $1->set_last( $3 )); }
    23022313        ;
    23032314
Note: See TracChangeset for help on using the changeset viewer.