Example #1
0
        public static CharMatcherOrGroup operator |(CharMatcher a, string b)
        {
            var cmg = new CharMatcherOrGroup();

            cmg.Matchers.Add(a);
            cmg.Matchers.Add(new ConstCharMatcher(b));
            return(cmg);
        }
Example #2
0
        public static CharMatcherOrGroup operator |(CharMatcher a, CharMatcher b)
        {
            var cmg = new CharMatcherOrGroup();

            cmg.Matchers.Add(a);
            cmg.Matchers.Add(b);
            return(cmg);
        }