Changeset 63b3279 for src/Parser/parser.yy
- Timestamp:
- Sep 12, 2021, 11:19:05 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- 347925c, b5ec090
- Parents:
- 9cdfa5fb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r9cdfa5fb r63b3279 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S un Aug 8 09:14:44 202113 // Update Count : 50 3812 // Last Modified On : Sat Sep 11 08:20:44 2021 13 // Update Count : 5040 14 14 // 15 15 … … 2446 2446 | simple_assignment_operator initializer { $$ = $1 == OperKinds::Assign ? $2 : $2->set_maybeConstructed( false ); } 2447 2447 | '=' VOID { $$ = new InitializerNode( true ); } 2448 | '{' initializer_list_opt comma_opt '}' { $$ = new InitializerNode( $2, true ); } 2448 2449 ; 2449 2450 … … 2459 2460 | designation initializer { $$ = $2->set_designators( $1 ); } 2460 2461 | 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 ) )); } 2463 2463 ; 2464 2464
Note: See TracChangeset
for help on using the changeset viewer.