Ignore:
Timestamp:
Sep 4, 2014, 2:43:20 PM (5 years ago)
Author:
cameron
Message:

Revert CR introduction; eliminate unused code for 'predefined' syms

File:
1 edited

Legend:

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

    r4123 r4129  
    7171    std::string cc_name;
    7272    std::map<std::string,std::string> name_map;
    73     std::list<CC*> predefined_characters;
    7473
    7574    CC* cc_lf = new CC(0x0A);
    7675    cc_name = cc_lf->getName();
    7776    re_map.insert(make_pair(cc_name, cc_lf));
    78     name_map.insert(make_pair("LF", cc_name));
    79    
    80     CC* cc_cr = new CC(0x0D);
    81     cc_name = cc_cr->getName();
    82     re_map.insert(make_pair(cc_name, cc_cr));
    83     name_map.insert(make_pair("CR", cc_name));
    84    
     77    name_map.insert(make_pair("LineFeed", cc_name));
     78
    8579    CC* cc_utf8_single_byte = new CC(0x00, 0x7F);
    8680    cc_name = cc_utf8_single_byte->getName();
     
    10296    re_map.insert(make_pair(cc_name, cc_utf8_prefix4));
    10397    name_map.insert(make_pair("UTF8-Prefix4", cc_name));
    104    
    105    
    10698
    10799    CC_Compiler cc_compiler(encoding);
    108     std::list<PabloS*> cc_stmtsl = cc_compiler.compile(basis_pattern, gensym_pattern, re_map, predefined_characters);
     100    std::list<PabloS*> cc_stmtsl = cc_compiler.compile(basis_pattern, gensym_pattern, re_map);
    109101
    110102    //Print to the terminal the AST that was generated by the character class compiler.
Note: See TracChangeset for help on using the changeset viewer.