Changes in / [31ce3d6:7c70089]
- Location:
- src
- Files:
-
- 7 edited
-
Parser/DeclarationNode.cc (modified) (2 diffs)
-
Parser/ParseNode.h (modified) (2 diffs)
-
Parser/TypeData.cc (modified) (5 diffs)
-
Parser/parser.yy (modified) (2 diffs)
-
SynTree/Declaration.h (modified) (2 diffs)
-
driver/Makefile.am (modified) (1 diff)
-
driver/Makefile.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
r31ce3d6 r7c70089 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 15:46:33201713 // Update Count : 101 812 // Last Modified On : Fri Mar 17 08:46:05 2017 13 // Update Count : 1017 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", " trait", "coroutine", "monitor", "thread", "NoAggregateNames" };38 const char * DeclarationNode::aggregateNames[] = { "struct", "union", "context", "NoAggregateNames" }; 39 39 const char * DeclarationNode::typeClassNames[] = { "otype", "dtype", "ftype", "NoTypeClassNames" }; 40 40 const char * DeclarationNode::builtinTypeNames[] = { "__builtin_va_list", "NoBuiltinTypeNames" }; -
src/Parser/ParseNode.h
r31ce3d6 r7c70089 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 17 15:42:18201713 // Update Count : 77 712 // Last Modified On : Thu Mar 16 08:32:43 2017 13 // Update Count : 776 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, Coroutine, Monitor, Thread,NoAggregate };208 enum Aggregate { Struct, Union, Trait, NoAggregate }; 209 209 enum TypeClass { Otype, Dtype, Ftype, Ttype, NoTypeClass }; 210 210 enum BuiltinType { Valist, Zero, One, NoBuiltinType }; -
src/Parser/TypeData.cc
r31ce3d6 r7c70089 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 15:52:43201713 // Update Count : 56 312 // Last Modified On : Fri Mar 17 08:46:10 2017 13 // Update Count : 560 14 14 // 15 15 … … 619 619 switch ( td->aggregate.kind ) { 620 620 case DeclarationNode::Struct: 621 case DeclarationNode::Coroutine: 622 case DeclarationNode::Monitor: 623 case DeclarationNode::Thread: 624 at = new StructDecl( *td->aggregate.name, td->aggregate.kind, attributes ); 621 at = new StructDecl( *td->aggregate.name, attributes ); 625 622 buildForall( td->aggregate.params, at->get_parameters() ); 626 623 break; … … 659 656 switch ( type->aggregate.kind ) { 660 657 case DeclarationNode::Struct: 661 case DeclarationNode::Coroutine:662 case DeclarationNode::Monitor:663 case DeclarationNode::Thread:664 658 ret = new StructInstType( buildQualifiers( type ), (StructDecl *)typedecl ); 665 659 break; … … 677 671 switch ( type->aggregate.kind ) { 678 672 case DeclarationNode::Struct: 679 case DeclarationNode::Coroutine:680 case DeclarationNode::Monitor:681 case DeclarationNode::Thread:682 673 ret = new StructInstType( buildQualifiers( type ), *type->aggregate.name ); 683 674 break; … … 712 703 switch ( type->aggregate.kind ) { 713 704 case DeclarationNode::Struct: 714 case DeclarationNode::Coroutine:715 case DeclarationNode::Monitor:716 case DeclarationNode::Thread:717 705 ret = new StructInstType( buildQualifiers( type ), *type->aggregate.name ); 718 706 break; -
src/Parser/parser.yy
r31ce3d6 r7c70089 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 17 15:42:22201713 // Update Count : 231 712 // Last Modified On : Thu Mar 16 12:57:03 2017 13 // Update Count : 2316 14 14 // 15 15 … … 1638 1638 { $$ = DeclarationNode::Union; } 1639 1639 | COROUTINE 1640 { $$ = DeclarationNode:: Coroutine; }1640 { $$ = DeclarationNode::Struct; } 1641 1641 | MONITOR 1642 { $$ = DeclarationNode:: Monitor; }1642 { $$ = DeclarationNode::Struct; } 1643 1643 | THREAD 1644 { $$ = DeclarationNode:: Thread; }1644 { $$ = DeclarationNode::Struct; } 1645 1645 ; 1646 1646 -
src/SynTree/Declaration.h
r31ce3d6 r7c70089 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 17 16:05:08201713 // Update Count : 1 2112 // Last Modified On : Thu Mar 16 08:34:11 2017 13 // Update Count : 118 14 14 // 15 15 … … 255 255 typedef AggregateDecl Parent; 256 256 public: 257 StructDecl( const std::string &name, DeclarationNode::Aggregate kind = DeclarationNode::Struct, const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes ), kind( kind) {}257 StructDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >() ) : Parent( name, attributes ) {} 258 258 StructDecl( const StructDecl &other ) : Parent( other ) {} 259 259 260 bool is_coroutine() { return kind == DeclarationNode::Coroutine; }261 bool is_monitor() { return kind == DeclarationNode::Monitor; }262 bool is_thread() { return kind == DeclarationNode::Thread; }263 264 260 virtual StructDecl *clone() const { return new StructDecl( *this ); } 265 261 virtual void accept( Visitor &v ) { v.visit( this ); } 266 262 virtual Declaration *acceptMutator( Mutator &m ) { return m.mutate( this ); } 267 263 private: 268 DeclarationNode::Aggregate kind;269 264 virtual std::string typeString() const; 270 265 }; -
src/driver/Makefile.am
r31ce3d6 r7c70089 32 32 33 33 install-exec-hook: 34 @test -z "$(CFA_BINDIR)" || $(MKDIR_P) "$(CFA_BINDIR)"35 34 @echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) cfa '$(CFA_BINDIR)/$(CFA_NAME)'"; \ 36 35 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) cfa $(CFA_BINDIR)/$(CFA_NAME) || exit $$? -
src/driver/Makefile.in
r31ce3d6 r7c70089 530 530 531 531 install-exec-hook: 532 @test -z "$(CFA_BINDIR)" || $(MKDIR_P) "$(CFA_BINDIR)"533 532 @echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) cfa '$(CFA_BINDIR)/$(CFA_NAME)'"; \ 534 533 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) cfa $(CFA_BINDIR)/$(CFA_NAME) || exit $$?
Note:
See TracChangeset
for help on using the changeset viewer.