Changes in src/Parser/parser.yy [9ed4f94:9bd6105]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r9ed4f94 r9bd6105 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 30 07:04:19 201713 // Update Count : 27 4012 // Last Modified On : Sat Aug 26 17:50:19 2017 13 // Update Count : 2712 14 14 // 15 15 … … 48 48 #include <cstdio> 49 49 #include <stack> 50 using namespace std;51 52 50 #include "ParseNode.h" 53 51 #include "TypedefTable.h" 54 52 #include "TypeData.h" 55 53 #include "LinkageSpec.h" 56 #include "Common/SemanticError.h" // error_str 54 using namespace std; 57 55 58 56 extern DeclarationNode * parseTree; … … 3135 3133 // ----end of grammar---- 3136 3134 3135 extern char *yytext; 3136 3137 void yyerror( const char * ) { 3138 cout << "Error "; 3139 if ( yyfilename ) { 3140 cout << "in file " << yyfilename << " "; 3141 } // if 3142 cout << "at line " << yylineno << " reading token \"" << (yytext[0] == '\0' ? "EOF" : yytext) << "\"" << endl; 3143 } 3144 3137 3145 // Local Variables: // 3138 3146 // mode: c++ //
Note:
See TracChangeset
for help on using the changeset viewer.