Ignore:
Timestamp:
Oct 17, 2014, 1:49:15 PM (5 years ago)
Author:
nmedfort
Message:

Transitory work towards using CC_Namer.

File:
1 edited

Legend:

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

    r4242 r4246  
    6060    #endif
    6161
     62    //Optimization passes to simplify the AST.
     63    re_ast = RE_Nullable::removeNullablePrefix(re_ast);
     64    #ifdef DEBUG_PRINT_RE_AST
     65    std::cerr << "RemoveNullablePrefix:" << std::endl << Printer_RE::PrintRE(re_ast) << std::endl;
     66    #endif
     67
     68    re_ast = RE_Nullable::removeNullableSuffix(re_ast);
     69    #ifdef DEBUG_PRINT_RE_AST
     70    std::cerr << "RemoveNullableSuffix:" << std::endl << Printer_RE::PrintRE(re_ast) << std::endl;
     71    #endif
     72
    6273    //Add the UTF encoding.
    6374    if (encoding.getType() == Encoding::Type::UTF_8)
     
    6980    //Print to the terminal the AST that was generated by the utf8 encoder.
    7081    std::cerr << "UTF8-encoder:" << std::endl << Printer_RE::PrintRE(re_ast) << std::endl;
    71     #endif
    72 
    73     //Optimization passes to simplify the AST.
    74     re_ast = RE_Nullable::removeNullablePrefix(re_ast);
    75     #ifdef DEBUG_PRINT_RE_AST
    76     std::cerr << "RemoveNullablePrefix:" << std::endl << Printer_RE::PrintRE(re_ast) << std::endl;
    77     #endif
    78 
    79     re_ast = RE_Nullable::removeNullableSuffix(re_ast);
    80     #ifdef DEBUG_PRINT_RE_AST
    81     std::cerr << "RemoveNullableSuffix:" << std::endl << Printer_RE::PrintRE(re_ast) << std::endl;
    8282    #endif
    8383
Note: See TracChangeset for help on using the changeset viewer.