Changeset 4331 for icGREP


Ignore:
Timestamp:
Dec 10, 2014, 9:17:39 PM (5 years ago)
Author:
cameron
Message:

print namemaps

Location:
icGREP/icgrep-devel/icgrep
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/cc/cc_namemap.cpp

    r4329 r4331  
    6969}
    7070
     71std::string CC_NameMap::printMap() {
     72    std::string retval = "";
     73    for (Name * name : mNameVector) {
     74        retval.append("mNameMap[" +  name->getName() + "] = " + Printer_RE::PrintRE(name->getCC()) + "]\n");
     75    }
     76    return retval;
    7177}
     78
     79}
  • icGREP/icgrep-devel/icgrep/cc/cc_namemap.hpp

    r4252 r4331  
    4343    }
    4444
     45    std::string printMap();
     46   
    4547private:
    4648
  • icGREP/icgrep-devel/icgrep/compiler.cpp

    r4330 r4331  
    9494    // note: system is clumbersome at the moment; this ought to be done AFTER toUTF8.
    9595    nameMap.addPredefined("LineFeed", makeCC(0x0A));
     96    #ifdef DEBUG_PRINT_RE_AST
     97    std::cerr << "NameMap:\n" << nameMap.printMap() << std::endl;
     98    #endif
    9699
     100   
     101   
    97102    re_ast = RE_Simplifier::simplify(re_ast);
    98103    #ifdef DEBUG_PRINT_RE_AST
Note: See TracChangeset for help on using the changeset viewer.