Ignore:
Timestamp:
May 24, 2017, 10:42:09 AM (2 years ago)
Author:
cameron
Message:

Initial support for -q, -l, -L modes, grep options reorganization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_parser.cpp

    r5464 r5473  
    643643RE * RE_Parser::parseRegexPropertyValue(const std::string & propName, const std::string& regexValue) {
    644644    RE * propValueRe = RE_Parser::parse("^" + regexValue + "$", fModeFlagSet, mReSyntax);
    645     GrepEngine engine;
    646     engine.grepCodeGen({ propValueRe }, false, false, GrepSource::Internal, GrepType::PropertyValue);
     645    grep::GrepEngine engine;
     646    engine.grepCodeGen({ propValueRe }, grep::NormalMode, false, GrepSource::Internal, GrepType::PropertyValue);
    647647    const auto matches = engine.grepPropertyValues(propName);
    648648    if (matches.empty()) {
     
    676676    RE * embedded = makeSeq({mMemoizer.memoize(makeCC(0x3B)), makeRep(makeAny(), 0, Rep::UNBOUNDED_REP), nameRE});
    677677   
    678     GrepEngine engine;
    679     engine.grepCodeGen({ embedded }, false, false, GrepSource::Internal, GrepType::NameExpression);
     678    grep::GrepEngine engine;
     679    engine.grepCodeGen({ embedded }, grep::NormalMode, false, GrepSource::Internal, GrepType::NameExpression);
    680680    CC * codepoints = engine.grepCodepoints();
    681681   
Note: See TracChangeset for help on using the changeset viewer.