Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    rc4f68dc rf7e4db27  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Jul 25 15:54:35 2018
    13 // Update Count     : 3841
     12// Last Modified On : Fri Jul 20 11:46:46 2018
     13// Update Count     : 3837
    1414//
    1515
     
    28042804        typedef
    28052805                // hide type name in enclosing scope by variable name
    2806                 {
    2807                         // if ( ! typedefTable.existsCurr( *$1->name ) ) {
    2808                                 typedefTable.addToEnclosingScope( *$1->name, IDENTIFIER, "ID" );
    2809                         // } else {
    2810                         //      SemanticError( yylloc, string("'") + *$1->name + "' redeclared as different kind of symbol." ); $$ = nullptr;
    2811                         // } // if
    2812                 }
     2806                { typedefTable.addToEnclosingScope( *$1->name, IDENTIFIER, "ID" ); }
    28132807        | '(' paren_type ')'
    28142808                { $$ = $2; }
     
    28212815                { $$ = $3->addPointer( DeclarationNode::newPointer( $2, $1 ) ); }
    28222816        | '(' type_ptr ')' attribute_list_opt
    2823                 { $$ = $2->addQualifiers( $4 ); }                               // redundant parenthesis
     2817                { $$ = $2->addQualifiers( $4 ); }
    28242818        ;
    28252819
Note: See TracChangeset for help on using the changeset viewer.