Changeset bac5158 for src/Parser/parser.yy
- Timestamp:
- Jul 15, 2017, 9:47:54 AM (7 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r994d080 rbac5158 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jul 15 0 8:17:48201713 // Update Count : 245 012 // Last Modified On : Sat Jul 15 09:46:26 2017 13 // Update Count : 2451 14 14 // 15 15 … … 1679 1679 | aggregate_key attribute_list_opt typegen_name // CFA 1680 1680 { $$ = $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 } 1681 1705 ; 1682 1706
Note: See TracChangeset
for help on using the changeset viewer.