Ignore:
Timestamp:
Oct 16, 2018, 2:29:44 PM (7 months ago)
Author:
nmedfort
Message:

Added RE_Inspector.

Migrated RE passes to RE_Transformer.

Incorporated Memoizer functionality into RE_Transformer/Inspector.

Removed Memoizer.

Bug fix for unicode_set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_name.h

    r6159 r6173  
    4646    friend Name * makeZeroWidth(const std::string & name, RE * zerowidth);
    4747    friend Name * makeName(CC * const cc);
    48     friend Name * makeName(const std::string &, Type);
    49     friend Name * makeName(const std::string &, const std::string &, Type);
    50     friend Name * makeName(const std::string & nm, const Name::Type type, RE * defn);
     48    friend Name * makeName(const std::string &, Type, RE *);
     49    friend Name * makeName(const std::string &, const std::string &, Type, RE *);
    5150    Name(const char * nameSpace, const length_t namespaceLength, const char * name, const length_t nameLength, Type type, RE * defn)
    5251    : RE(ClassTypeId::Name)
     
    143142}
    144143
    145 inline Name * makeName(const std::string & name, const Name::Type type) {
    146     return new Name(nullptr, 0, name.c_str(), name.length(), type, nullptr);
     144inline Name * makeName(const std::string & name, const Name::Type type, RE * defn = nullptr) {
     145    return new Name(nullptr, 0, name.c_str(), name.length(), type, defn);
    147146}
    148147
    149 inline Name * makeName(const std::string & property, const std::string & value, const Name::Type type) {
    150     return new Name(property.c_str(), property.length(), value.c_str(), value.length(), type, nullptr);
    151 }
    152    
    153 inline Name * makeName(const std::string & nm, const Name::Type type, RE * defn) {
    154     return new Name(nullptr, 0, nm.c_str(), nm.length(), type, defn);
     148inline Name * makeName(const std::string & property, const std::string & value, const Name::Type type, RE * defn = nullptr) {
     149    return new Name(property.c_str(), property.length(), value.c_str(), value.length(), type, defn);
    155150}
    156151
Note: See TracChangeset for help on using the changeset viewer.