Ignore:
Timestamp:
Jul 15, 2017, 9:47:54 AM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
478b1d0
Parents:
994d080 (diff), 6ea87486 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

fix conflict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r994d080 rbac5158  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Jul 15 08:17:48 2017
    13 // Update Count     : 2450
     12// Last Modified On : Sat Jul 15 09:46:26 2017
     13// Update Count     : 2451
    1414//
    1515
     
    16791679        | aggregate_key attribute_list_opt typegen_name         // CFA
    16801680                { $$ = $3->addQualifiers( $2 ); }
     1681
     1682// Temp, testing TreeStruct
     1683    | STRUCT TRY attribute_list_opt no_attr_identifier_or_type_name
     1684        {
     1685            typedefTable.makeTypedef( *$4 );            // create typedef
     1686            if ( forall ) typedefTable.changeKind( *$4, TypedefTable::TG ); // $
     1687            forall = false;                             // reset
     1688        }
     1689      '{' field_declaration_list '}'
     1690        {
     1691            $$ = DeclarationNode::newTreeStruct( DeclarationNode::Struct,
     1692                $4, nullptr, nullptr, $7, true )->addQualifiers( $3 );
     1693        }
     1694    | STRUCT TRY attribute_list_opt no_attr_identifier_or_type_name TYPEDEFname
     1695        {
     1696            typedefTable.makeTypedef( *$4 );            // create typedef
     1697            if ( forall ) typedefTable.changeKind( *$4, TypedefTable::TG ); // $
     1698            forall = false;                             // reset
     1699        }
     1700      '{' field_declaration_list '}'
     1701        {
     1702            $$ = DeclarationNode::newTreeStruct( DeclarationNode::Struct,
     1703                $4, $5, nullptr, $8, true )->addQualifiers( $3 );
     1704        }
    16811705        ;
    16821706
Note: See TracChangeset for help on using the changeset viewer.