Changeset 168c007 for src/Parser
- Timestamp:
- Mar 21, 2017, 12:50:27 PM (8 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:
- da6d4566, f5392c1
- Parents:
- 94a8123 (diff), e04b636 (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. - Location:
- src/Parser
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/Parser/DeclarationNode.cc ¶
r94a8123 r168c007 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 17 08:46:05201713 // Update Count : 101 712 // Last Modified On : Fri Mar 17 15:46:33 2017 13 // Update Count : 1018 14 14 // 15 15 … … 36 36 const char * DeclarationNode::signednessNames[] = { "signed", "unsigned", "NoSignednessNames" }; 37 37 const char * DeclarationNode::lengthNames[] = { "short", "long", "long long", "NoLengthNames" }; 38 const char * DeclarationNode::aggregateNames[] = { "struct", "union", " context", "NoAggregateNames" };38 const char * DeclarationNode::aggregateNames[] = { "struct", "union", "trait", "coroutine", "monitor", "thread", "NoAggregateNames" }; 39 39 const char * DeclarationNode::typeClassNames[] = { "otype", "dtype", "ftype", "NoTypeClassNames" }; 40 40 const char * DeclarationNode::builtinTypeNames[] = { "__builtin_va_list", "NoBuiltinTypeNames" }; -
TabularUnified src/Parser/ParseNode.h ¶
r94a8123 r168c007 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 16 08:32:43201713 // Update Count : 77 612 // Last Modified On : Fri Mar 17 15:42:18 2017 13 // Update Count : 777 14 14 // 15 15 … … 206 206 enum Signedness { Signed, Unsigned, NoSignedness }; 207 207 enum Length { Short, Long, LongLong, NoLength }; 208 enum Aggregate { Struct, Union, Trait, NoAggregate };208 enum Aggregate { Struct, Union, Trait, Coroutine, Monitor, Thread, NoAggregate }; 209 209 enum TypeClass { Otype, Dtype, Ftype, Ttype, NoTypeClass }; 210 210 enum BuiltinType { Valist, Zero, One, NoBuiltinType }; -
TabularUnified src/Parser/TypeData.cc ¶
r94a8123 r168c007 10 10 // Created On : Sat May 16 15:12:51 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 17 08:46:10201713 // Update Count : 56 012 // Last Modified On : Fri Mar 17 15:52:43 2017 13 // Update Count : 563 14 14 // 15 15 … … 619 619 switch ( td->aggregate.kind ) { 620 620 case DeclarationNode::Struct: 621 at = new StructDecl( *td->aggregate.name, attributes ); 621 case DeclarationNode::Coroutine: 622 case DeclarationNode::Monitor: 623 case DeclarationNode::Thread: 624 at = new StructDecl( *td->aggregate.name, td->aggregate.kind, attributes ); 622 625 buildForall( td->aggregate.params, at->get_parameters() ); 623 626 break; … … 656 659 switch ( type->aggregate.kind ) { 657 660 case DeclarationNode::Struct: 661 case DeclarationNode::Coroutine: 662 case DeclarationNode::Monitor: 663 case DeclarationNode::Thread: 658 664 ret = new StructInstType( buildQualifiers( type ), (StructDecl *)typedecl ); 659 665 break; … … 671 677 switch ( type->aggregate.kind ) { 672 678 case DeclarationNode::Struct: 679 case DeclarationNode::Coroutine: 680 case DeclarationNode::Monitor: 681 case DeclarationNode::Thread: 673 682 ret = new StructInstType( buildQualifiers( type ), *type->aggregate.name ); 674 683 break; … … 703 712 switch ( type->aggregate.kind ) { 704 713 case DeclarationNode::Struct: 714 case DeclarationNode::Coroutine: 715 case DeclarationNode::Monitor: 716 case DeclarationNode::Thread: 705 717 ret = new StructInstType( buildQualifiers( type ), *type->aggregate.name ); 706 718 break; -
TabularUnified src/Parser/lex.ll ¶
r94a8123 r168c007 202 202 __const__ { KEYWORD_RETURN(CONST); } // GCC 203 203 continue { KEYWORD_RETURN(CONTINUE); } 204 _Coroutine { KEYWORD_RETURN(COROUTINE); } // CFA204 coroutine { KEYWORD_RETURN(COROUTINE); } // CFA 205 205 default { KEYWORD_RETURN(DEFAULT); } 206 206 disable { KEYWORD_RETURN(DISABLE); } // CFA -
TabularUnified src/Parser/parser.yy ¶
r94a8123 r168c007 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 16 12:57:03201713 // Update Count : 231 612 // Last Modified On : Fri Mar 17 15:42:22 2017 13 // Update Count : 2317 14 14 // 15 15 … … 1638 1638 { $$ = DeclarationNode::Union; } 1639 1639 | COROUTINE 1640 { $$ = DeclarationNode:: Struct; }1640 { $$ = DeclarationNode::Coroutine; } 1641 1641 | MONITOR 1642 { $$ = DeclarationNode:: Struct; }1642 { $$ = DeclarationNode::Monitor; } 1643 1643 | THREAD 1644 { $$ = DeclarationNode:: Struct; }1644 { $$ = DeclarationNode::Thread; } 1645 1645 ; 1646 1646
Note: See TracChangeset
for help on using the changeset viewer.