for(Sequence s : not) ret = ret.not(s);
}
else if (unwrap) ret = new Sequence.Unwrap(expansion, drops, and, not);
- else if (tag!=null) ret = Sequence.rewritingSequence(tag, expansion, drops, and, not);
- else {
+ else if (tag!=null) {
+ ret = Sequence.rewritingSequence(tag, expansion, drops);
+ for(Sequence s : and) ret = ret.and(s);
+ for(Sequence s : not) ret = ret.not(s);
+ } else {
int idx = -1;
for(int i=0; i<expansion.length; i++)
if (!drops[i])