Ignore:
Timestamp:
Sep 29, 2014, 2:11:34 PM (5 years ago)
Author:
nmedfort
Message:

More refactoring of the RE system; moved the original re/RE_Compiler to compiler.cpp and the PBIX_Compiler to the re/RE_Compiler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/printer_pablos.cpp

    r4194 r4197  
    6969std::string StatementPrinter::Print_CC_PabloStmts(std::list<PabloS*> stmts)
    7070{
    71     std::string strOut;
    72 
    73     std::cout << "Total Statements: " + std::to_string(stmts.size()) << std::endl;
    74     std::list<PabloS*>::iterator it;
    75     for (it = stmts.begin(); it != stmts.end(); ++it)
    76     {
    77         strOut += ShowPabloS(*it) + "\n";
     71    std::string strOut = "Total Statements: " + std::to_string(stmts.size()) + "\n";
     72    for (const auto stmt : stmts) {
     73        strOut += ShowPabloS(stmt) + "\n";
    7874    }
    79 
    8075    return strOut;
    8176}
Note: See TracChangeset for help on using the changeset viewer.