Changeset 4607 for icGREP


Ignore:
Timestamp:
Jun 15, 2015, 11:05:48 AM (4 years ago)
Author:
cameron
Message:

Reserve mStarDepth logic for unbounded repetitions only.

File:
1 edited

Legend:

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

    r4544 r4607  
    446446    }
    447447    // Fall through to general case.
    448     mStarDepth++;
    449448    while (lb-- != 0) {
    450449        marker = process(repeated, marker, pb);
    451450    }
    452     mStarDepth--;
    453451    return marker;
    454452}
     
    466464    }
    467465    // Fall through to general case.
    468     mStarDepth++;
    469466    while (ub-- != 0) {
    470467        MarkerType a = process(repeated, marker, pb);
     
    473470        marker = makeMarker(markerPos(a), pb.createOr(markerVar(a), markerVar(m), "m"));
    474471    }
    475     mStarDepth--;
    476472    return marker;
    477473}
Note: See TracChangeset for help on using the changeset viewer.