Exemplo n.º 1
0
        public void CharacterClassRepeatedTest(string input, bool expected)
        {
            string pattern = "^[a-b]+$";
            var    target  = NFA.OneOrMany(NFA.CharacterClass('a', 'b'));

            Test(input, expected, target, pattern);
        }
Exemplo n.º 2
0
        public void CharacterClassInvertedTest(string input, bool expected)
        {
            string pattern = "^[^c-e]$";
            var    target  = NFA.CharacterClass('c', 'e', included: false);

            Test(input, expected, target, pattern);
        }
Exemplo n.º 3
0
        public void CharacterClassTest(string input, bool expected)
        {
            string pattern = "^[a-z]$";
            var    target  = NFA.CharacterClass('a', 'z');

            Test(input, expected, target, pattern);
        }
 public void Visit(CharacterClass target)
 {
     stack.Push(NFA.CharacterClass(target));
 }