Changeset 5430


Ignore:
Timestamp:
May 1, 2017, 3:07:30 PM (5 months ago)
Author:
cameron
Message:

RE print representation of captures must included the capture definition for uniqueness

File:
1 edited

Legend:

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

    r5308 r5430  
    5555        retVal += re_name->getName();
    5656        retVal += "\" ";
     57        if (re_name->getType() == Name::Type::Capture) {
     58            retVal += "=(" + PrintRE(re_name->getDefinition()) + ")";
     59        }
    5760    } else if (const Assertion * a = dyn_cast<const Assertion>(re)) {
    5861        retVal = (a->getSense() == Assertion::Sense::Positive) ? "" : "Negative";
Note: See TracChangeset for help on using the changeset viewer.