Changeset b1d6dd5 for src/Parser


Ignore:
Timestamp:
Jun 11, 2015, 12:15:54 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:
eff0cad0
Parents:
8a95629
Message:

fix parsing error for EOF message, change cfa-ccp -x flag to -v, regression testing third attempt: consolidate example programs

Location:
src/Parser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.cc

    r8a95629 rb1d6dd5  
    92729272            std::cout << "in file " << yyfilename << " ";
    92739273        } // if
    9274 //      std::cout << "at line " << yylineno << " reading token \"" << *(yylval.tok.str) << "\"" << std::endl;
    9275         std::cout << "at line " << yylineno << " reading token \"" << yytext << "\"" << std::endl;
     9274        std::cout << "at line " << yylineno << " reading token \"" << (yytext[0] == '\0' ? "EOF" : yytext) << "\"" << std::endl;
    92769275}
    92779276
  • src/Parser/parser.yy

    r8a95629 rb1d6dd5  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Jun 10 14:22:15 2015
    13 // Update Count     : 1039
     12// Last Modified On : Wed Jun 10 20:31:54 2015
     13// Update Count     : 1040
    1414//
    1515
     
    27232723            std::cout << "in file " << yyfilename << " ";
    27242724        } // if
    2725         std::cout << "at line " << yylineno << " reading token \"" << yytext << "\"" << std::endl;
     2725        std::cout << "at line " << yylineno << " reading token \"" << (yytext[0] == '\0' ? "EOF" : yytext) << "\"" << std::endl;
    27262726}
    27272727
Note: See TracChangeset for help on using the changeset viewer.