Ignore:
Timestamp:
Dec 31, 2017, 7:22:14 PM (13 months ago)
Author:
cameron
Message:

Supporting multiple alphabets in RE compilation - initial check-in

File:
1 edited

Legend:

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

    r5786 r5816  
    2222#include <re/re_assertion.h>
    2323#include <re/re_group.h>
     24#include <cc/alphabet.h>
    2425
    2526using namespace re;
     
    5455            retVal += "]";
    5556        }
     57        retVal += "/" + re_cc->getAlphabet()->getName();
    5658    } else if (const Name* re_name = dyn_cast<const Name>(re)) {
    5759        retVal = "Name \"";
     
    6264        retVal += re_name->getName();
    6365        retVal += "\" ";
    64         if (re_name->getType() == Name::Type::Capture) {
     66        //if (re_name->getType() == Name::Type::Capture) {
    6567            retVal += "=(" + PrintRE(re_name->getDefinition()) + ")";
    66         }
     68        //}
    6769    } else if (const Range* rg = dyn_cast<const Range>(re)) {
    6870        retVal = "Range (";
Note: See TracChangeset for help on using the changeset viewer.