Changeset 4406


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

AST support for Lookahead/Lookbehind? assertions

Location:
icGREP/icgrep-devel/icgrep
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/cc/cc_compiler.cpp

    r4358 r4406  
    1818#include <re/re_diff.h>
    1919#include <re/re_intersect.h>
     20#include <re/re_assertion.h>
    2021#include <re/printer_re.h>
    2122#include <cc/cc_namemap.hpp>
     
    7475        compileByteClasses(rep->getRE());
    7576    }
     77    else if (Assertion * a = dyn_cast<Assertion>(re)) {
     78        compileByteClasses(a->getAsserted());
     79    }
    7680    else if (Diff * diff = dyn_cast<Diff>(re)) {
    7781        compileByteClasses(diff->getRH());
  • icGREP/icgrep-devel/icgrep/cc/cc_namemap.cpp

    r4337 r4406  
    77#include <re/re_diff.h>
    88#include <re/re_intersect.h>
     9#include <re/re_assertion.h>
    910#include <re/printer_re.h>
    1011#include <iostream>
     
    2728    else if (Rep * rep = dyn_cast<Rep>(re)) {
    2829        rep->setRE(process(rep->getRE(), t));
     30    }
     31    else if (Assertion * a = dyn_cast<Assertion>(re)) {
     32        a->setAsserted(process(a->getAsserted(), t));
    2933    }
    3034    else if (Diff * diff = dyn_cast<Diff>(re)) {
  • icGREP/icgrep-devel/icgrep/resolve_properties.cpp

    r4393 r4406  
    1414#include <re/re_diff.h>
    1515#include <re/re_intersect.h>
     16#include <re/re_assertion.h>
    1617#include <re/re_start.h>
    1718#include <re/re_end.h>
     
    6970    else if (Rep * rep = dyn_cast<Rep>(re)) {
    7071        resolveProperties(rep->getRE());
     72    }
     73    else if (Assertion * a = dyn_cast<Assertion>(re)) {
     74        resolveProperties(a->getAsserted());
    7175    }
    7276    else if (Diff * diff = dyn_cast<Diff>(re)) {
Note: See TracChangeset for help on using the changeset viewer.