Changeset aeec6b7 for src/Parser
- Timestamp:
- Jul 10, 2018, 8:20:50 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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 3d7e53b
- Parents:
- 036dd5f (diff), 97be800 (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:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypedefTable.cc
r036dd5f raeec6b7 91 91 92 92 void TypedefTable::enterScope() { 93 kindTable.beginScope( );93 kindTable.beginScope(0); 94 94 debugPrint( cerr << "Entering scope " << kindTable.currentScope() << endl; print() ); 95 95 } // TypedefTable::enterScope -
src/Parser/TypedefTable.h
r036dd5f raeec6b7 23 23 24 24 class TypedefTable { 25 typedef ScopedMap< std::string, int > KindTable;25 typedef ScopedMap< std::string, int, int > KindTable; 26 26 KindTable kindTable; 27 unsigned int level = 0;27 unsigned int level; 28 28 public: 29 TypedefTable() : kindTable{0}, level{0} {} 29 30 ~TypedefTable(); 30 31 -
src/Parser/lex.ll
r036dd5f raeec6b7 464 464 void yyerror( const char * errmsg ) { 465 465 SemanticErrorThrow = true; 466 c out<< (yyfilename ? yyfilename : "*unknown file*") << ':' << yylineno << ':' << column - yyleng + 1466 cerr << (yyfilename ? yyfilename : "*unknown file*") << ':' << yylineno << ':' << column - yyleng + 1 467 467 << ": " << ErrorHelpers::error_str() << errmsg << " at token \"" << (yytext[0] == '\0' ? "EOF" : yytext) << '"' << endl; 468 468 }
Note: See TracChangeset
for help on using the changeset viewer.