Changeset 5d125e4 for src/Parser/parser.yy
- Timestamp:
- Jul 15, 2016, 10:16:47 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 873ffb7
- Parents:
- 5ed9061
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r5ed9061 r5d125e4 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 12 17:26:32201613 // Update Count : 16 5912 // Last Modified On : Tue Jul 12 20:52:53 2016 13 // Update Count : 1661 14 14 // 15 15 … … 1452 1452 aggregate_name: 1453 1453 aggregate_key '{' field_declaration_list '}' 1454 { $$ = DeclarationNode::newAggregate( $1, 0, 0, $3 ); }1454 { $$ = DeclarationNode::newAggregate( $1, 0, 0, $3, true ); } 1455 1455 | aggregate_key no_attr_identifier_or_type_name 1456 1456 { 1457 1457 typedefTable.makeTypedef( *$2 ); 1458 $$ = DeclarationNode::newAggregate( $1, $2, 0, 0 );1458 $$ = DeclarationNode::newAggregate( $1, $2, 0, 0, false ); 1459 1459 } 1460 1460 | aggregate_key no_attr_identifier_or_type_name 1461 1461 { typedefTable.makeTypedef( *$2 ); } 1462 1462 '{' field_declaration_list '}' 1463 { $$ = DeclarationNode::newAggregate( $1, $2, 0, $5 ); }1463 { $$ = DeclarationNode::newAggregate( $1, $2, 0, $5, true ); } 1464 1464 | aggregate_key '(' type_name_list ')' '{' field_declaration_list '}' // CFA 1465 { $$ = DeclarationNode::newAggregate( $1, 0, $3, $6 ); }1465 { $$ = DeclarationNode::newAggregate( $1, 0, $3, $6, false ); } 1466 1466 | aggregate_key typegen_name // CFA, S/R conflict 1467 1467 { $$ = $2; } … … 1476 1476 1477 1477 field_declaration_list: 1478 field_declaration1479 { $$ = $1; }1478 // empty 1479 { $$ = 0; } 1480 1480 | field_declaration_list field_declaration 1481 { $$ = $1 ->appendList( $2 ); }1481 { $$ = $1 != 0 ? $1->appendList( $2 ) : $2; } 1482 1482 ; 1483 1483
Note: See TracChangeset
for help on using the changeset viewer.