Changeset b5ec090 for src/Parser
- Timestamp:
- Sep 13, 2021, 1:42:07 PM (3 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r56e5b24 rb5ec090 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.