Ignore:
Timestamp:
Jul 31, 2014, 11:07:49 AM (5 years ago)
Author:
daled
Message:

The parser is now able to parse unicode categories.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re_simplifier.cpp

    r3917 r3935  
    2828        }
    2929
    30         retVal = mkSeq(&re_list);
     30        retVal = mkSeq(re_seq->getType(), &re_list);
    3131    }
    3232    else if (CC* re_cc = dynamic_cast<CC*>(re))
     
    3434        retVal = re_cc;
    3535    }
     36    else if (Name* re_name = dynamic_cast<Name*>(re))
     37    {
     38        retVal = new Name(re_name->getName());
     39    }
    3640    else if (Rep* re_rep = dynamic_cast<Rep*>(re))
    3741    {
     
    5054}
    5155
    52 RE* RE_Simplifier::mkSeq(std::list<RE*>* re_list)
     56RE* RE_Simplifier::mkSeq(Seq::Type type, std::list<RE*>* re_list)
    5357{
    5458    /*
     
    6670        if (t2_list->size() > 1)
    6771        {
    68             return new Seq(t2_list);
     72            Seq* new_seq = new Seq(t2_list);
     73            new_seq->setType(type);
     74            return new_seq;
    6975        }
    7076        else
Note: See TracChangeset for help on using the changeset viewer.