Example #1
0
        public ConcatExp Concat(Regexp exp)
        {
            if (exp.Type != ExpType.PlaceHolder)
            {
                ExpList.Add(exp);
            }

            return(this);
        }
Example #2
0
        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);
        }
Example #3
0
 public ConcatExp(Regexp x, Regexp y) : base(ExpType.Concat)
 {
     ExpList.Add(x);
     ExpList.Add(y);
 }
Example #4
0
 public JoinExp(Regexp x, Regexp y) : base(ExpType.Join)
 {
     ExpList.Add(x);
     ExpList.Add(y);
 }