Changeset be9288a for src/Parser/TypedefTable.h
- Timestamp:
- Aug 15, 2017, 1:38:04 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, 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:
- bd098ea
- Parents:
- ea6332d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypedefTable.h
rea6332d rbe9288a 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // TypedefTable.h -- 7 // TypedefTable.h -- 8 8 // 9 9 // Author : Rodolfo G. Esteves … … 21 21 #include <string> // for string 22 22 23 #include "ParserTypes.h" 23 24 #include "parser.hh" // for IDENTIFIER, TYPEDEFname, TYPEGENname 24 25 … … 31 32 kind_t kind; 32 33 }; 33 34 34 35 struct DeferredEntry { 35 36 std::string identifier; … … 43 44 std::string currentTrait; 44 45 int contextScope; 45 46 46 47 typedef std::list< DeferredEntry > deferListType; 47 48 std::stack< deferListType > deferListStack; 48 49 std::map< std::string, deferListType > contexts; 49 50 50 51 std::stack< std::string > nextIdentifiers; 51 52 … … 69 70 void addToEnclosingScope( const std::string &identifier, kind_t kind ); 70 71 void addToEnclosingScope( kind_t kind ); // use nextIdentifiers.top() 71 72 72 73 // "addToEnclosingScope2" adds the identifier/type pair to the scope that encloses the scope enclosing the the 73 74 // current one. This is the right way to handle assertion names 74 75 void addToEnclosingScope2( const std::string &identifier, kind_t kind ); 75 76 void addToEnclosingScope2( kind_t kind ); // use nextIdentifiers.top() 76 77 77 78 // set the next identifier to be used by an "add" operation without an identifier parameter within the current scope 78 79 void setNextIdentifier( const std::string &identifier ); 79 80 80 81 // dump the definitions from a pre-defined context into the current scope 81 82 void openTrait( const std::string &contextName ); 82 83 83 84 void enterScope(); 84 85 void leaveScope();
Note: See TracChangeset
for help on using the changeset viewer.