Changeset fbcb354 for src/Parser/parser.yy
- Timestamp:
- Aug 31, 2017, 3:33:11 PM (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:
- 058f549
- Parents:
- 326338ae (diff), 2ad507b8 (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
r326338ae rfbcb354 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Aug 26 17:50:19 201713 // Update Count : 27 1212 // Last Modified On : Wed Aug 30 07:04:19 2017 13 // Update Count : 2740 14 14 // 15 15 … … 48 48 #include <cstdio> 49 49 #include <stack> 50 using namespace std; 51 50 52 #include "ParseNode.h" 51 53 #include "TypedefTable.h" 52 54 #include "TypeData.h" 53 55 #include "LinkageSpec.h" 54 using namespace std; 56 #include "Common/SemanticError.h" // error_str 55 57 56 58 extern DeclarationNode * parseTree; … … 3133 3135 // ----end of grammar---- 3134 3136 3135 extern char *yytext;3136 3137 void yyerror( const char * ) {3138 cout << "Error ";3139 if ( yyfilename ) {3140 cout << "in file " << yyfilename << " ";3141 } // if3142 cout << "at line " << yylineno << " reading token \"" << (yytext[0] == '\0' ? "EOF" : yytext) << "\"" << endl;3143 }3144 3145 3137 // Local Variables: // 3146 3138 // mode: c++ //
Note: See TracChangeset
for help on using the changeset viewer.