Changeset b5ec090 for src/Parser


Ignore:
Timestamp:
Sep 13, 2021, 1:42:07 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
445f984
Parents:
56e5b24 (diff), 63b3279 (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:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r56e5b24 rb5ec090  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Aug  8 09:14:44 2021
    13 // Update Count     : 5038
     12// Last Modified On : Sat Sep 11 08:20:44 2021
     13// Update Count     : 5040
    1414//
    1515
     
    24462446        | simple_assignment_operator initializer        { $$ = $1 == OperKinds::Assign ? $2 : $2->set_maybeConstructed( false ); }
    24472447        | '=' VOID                                                                      { $$ = new InitializerNode( true ); }
     2448        | '{' initializer_list_opt comma_opt '}'        { $$ = new InitializerNode( $2, true ); }
    24482449        ;
    24492450
     
    24592460        | designation initializer                                       { $$ = $2->set_designators( $1 ); }
    24602461        | initializer_list_opt ',' initializer          { $$ = (InitializerNode *)( $1->set_last( $3 ) ); }
    2461         | initializer_list_opt ',' designation initializer
    2462                 { $$ = (InitializerNode *)($1->set_last( $4->set_designators( $3 ) )); }
     2462        | initializer_list_opt ',' designation initializer { $$ = (InitializerNode *)($1->set_last( $4->set_designators( $3 ) )); }
    24632463        ;
    24642464
Note: See TracChangeset for help on using the changeset viewer.