Ignore:
Timestamp:
Jan 6, 2015, 6:29:25 PM (4 years ago)
Author:
cameron
Message:

AST support for Lookahead/Lookbehind? assertions

File:
1 edited

Legend:

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

    r4393 r4405  
    1010#include "re_diff.h"
    1111#include "re_intersect.h"
     12#include "re_assertion.h"
    1213
    1314namespace re {
     
    2627    else if (Rep * rep = dyn_cast<Rep>(re)) {
    2728        return (rep->getLB() == 1) && (rep->getUB() == 1) && isByteLength(rep->getRE());
     29    }
     30    else if (Assertion * a = dyn_cast<Assertion>(re)) {
     31        return false;
    2832    }
    2933    else if (Diff * diff = dyn_cast<Diff>(re)) {
     
    5458        return (rep->getLB() == 1) && (rep->getUB() == 1) && isUnicodeUnitLength(rep->getRE());
    5559    }
     60    else if (Assertion * a = dyn_cast<Assertion>(re)) {
     61        return false;
     62    }
    5663    else if (Diff * diff = dyn_cast<Diff>(re)) {
    5764        return isUnicodeUnitLength(diff->getLH()) && isUnicodeUnitLength(diff->getRH());
Note: See TracChangeset for help on using the changeset viewer.