public void AnyCharSequenceTest(string input, bool expected) { string pattern = "^a.c$"; var target = NFA.Sequence(NFA.Character('a'), NFA.AnyCharacter(), NFA.Character('c')); Test(input, expected, target, pattern); }
public void AnyCharSequenceRepeatedTest(string input, bool expected) { string pattern = "^A.+C$"; var target = NFA.Sequence(NFA.Character('A'), NFA.OneOrMany(NFA.AnyCharacter()), NFA.Character('C')); Test(input, expected, target, pattern); }
public void AnyCharTest(string input, bool expected) { string pattern = "^.$"; var target = NFA.AnyCharacter(); Test(input, expected, target, pattern); }
public void Visit(AnyChar target) { stack.Push(NFA.AnyCharacter()); }