Ignore:
Timestamp:
Jun 10, 2015, 2:26:44 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
b1d6dd5, b5c5684
Parents:
0b2961f
Message:

fix parsing error for syntax error message, work on regression testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r0b2961f r8a95629  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jun  8 20:31:07 2015
    13 // Update Count     : 1030
     12// Last Modified On : Wed Jun 10 14:22:15 2015
     13// Update Count     : 1039
    1414//
    1515
     
    4646#define YYDEBUG_LEXER_TEXT (yylval)                                             // lexer loads this up each time
    4747#define YYDEBUG 1                                                                               // get the pretty debugging code to compile
     48extern char *yytext;
    4849
    4950#undef __GNUC_MINOR__
     
    27222723            std::cout << "in file " << yyfilename << " ";
    27232724        } // if
    2724         std::cout << "at line " << yylineno << " reading token \"" << *(yylval.tok.str) << "\"" << std::endl;
     2725        std::cout << "at line " << yylineno << " reading token \"" << yytext << "\"" << std::endl;
    27252726}
    27262727
Note: See TracChangeset for help on using the changeset viewer.