public ConcatExp Concat(Regexp exp) { if (exp.Type != ExpType.PlaceHolder) { ExpList.Add(exp); } return(this); }
public JoinExp Join(Regexp exp) { if (exp.Type == ExpType.PlaceHolder) { return(this); } if (exp.Type != ExpType.Join) { ExpList.Add(exp); } else { ExpList.AddRange(((JoinExp)exp).ExpList); } return(this); }
public ConcatExp(Regexp x, Regexp y) : base(ExpType.Concat) { ExpList.Add(x); ExpList.Add(y); }
public JoinExp(Regexp x, Regexp y) : base(ExpType.Join) { ExpList.Add(x); ExpList.Add(y); }