Ignore:
Timestamp:
Jul 31, 2014, 11:07:49 AM (5 years ago)
Author:
daled
Message:

The parser is now able to parse unicode categories.

File:
1 edited

Legend:

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

    r3914 r3935  
    3636
    3737    //Print to the terminal the AST that was generated by the parser before adding the UTF encoding:
    38     //std::cout << "\nParser:\n" + Printer_RE::PrintRE(re_ast) + "\n" << std::endl;
     38    std::cout << "\nParser:\n" + Printer_RE::PrintRE(re_ast) + "\n" << std::endl;
    3939
    4040    //Add the UTF encoding.
     
    5353
    5454    //Print to the terminal the AST that was generated by the utf8 encoder.
    55     //std::cout << "\nUTF8-encoder:\n" + Printer_RE::PrintRE(re_ast) + "\n" << std::endl;
     55    std::cout << "\nUTF8-encoder:\n" + Printer_RE::PrintRE(re_ast) + "\n" << std::endl;
    5656
    5757    //Optimization passes to simplify the AST.
     
    5959
    6060    //Print to the terminal the AST that was generated by the simplifier.
    61     //std::cout << "\nSimplifier:\n" + Printer_RE::PrintRE(re_ast) + "\n" << std::endl;
     61    std::cout << "\nSimplifier:\n" + Printer_RE::PrintRE(re_ast) + "\n" << std::endl;
    6262
    6363    //Map all of the unique character classes in order to reduce redundancy.
     
    6666
    6767    //Print to the terminal the AST with the reduced REs.
    68     //std::cout << "\nReducer:\n" + Printer_RE::PrintRE(re_ast) + "\n" << std::endl;
     68    std::cout << "\nReducer:\n" + Printer_RE::PrintRE(re_ast) + "\n" << std::endl;
    6969
    7070    //Build our list of predefined characters.
    7171    std::list<CC*> predefined_characters;
    72     CC* cc_lf = new CC("lex.cclf", '\n');
     72    CC* cc_lf = new CC('\n');
    7373    std::string lf_ccname = cc_lf->getName();
    7474    re_map.insert(make_pair(lf_ccname, cc_lf));
Note: See TracChangeset for help on using the changeset viewer.