Ignore:
Timestamp:
Feb 9, 2017, 4:06:24 PM (3 years ago)
Author:
cameron
Message:

Boundary assertions; comment out a bug with RemoveNullableAfterAssertion?

File:
1 edited

Legend:

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

    r5267 r5308  
    10811081
    10821082inline RE * RE_Parser::makeReBoundary(RE * re) {
    1083     return makeAlt({makeSeq({makeNegativeLookBehindAssertion(re), makeLookAheadAssertion(re)}),
    1084                     makeSeq({makeLookBehindAssertion(re), makeNegativeLookAheadAssertion(re)})});
     1083    return makeBoundaryAssertion(re);
    10851084}
    10861085inline RE * RE_Parser::makeReNonBoundary(RE * re) {
    1087     return makeAlt({makeSeq({makeNegativeLookBehindAssertion(re), makeNegativeLookAheadAssertion(re)}),
    1088                     makeSeq({makeLookBehindAssertion(re), makeLookAheadAssertion(re)})});
     1086    return makeNegativeBoundaryAssertion(re);
    10891087}
    10901088
Note: See TracChangeset for help on using the changeset viewer.