protected BaseMatcher(string patternText, RegexOptionsEx options) { Options = options; Pattern = BasePattern.CreatePattern(patternText); Pattern = TransformAST(Pattern); }
public static BaseMatcher CreateMatcher(AlgorithmType algorithmType, string patternText, RegexOptionsEx options) { switch (algorithmType) { case AlgorithmType.ExplicitDFA: return new ExplicitDFAMatcher(patternText, options); case AlgorithmType.ImplicitDFA: return new ImplicitDFAMatcher(patternText, options); case AlgorithmType.Backtracking: return new BacktrackingMatcher(patternText, options); default: throw new NotImplementedException("Algorithm not yet implemented."); } }
public RegexOptionsASTTransform(RegexOptionsEx options) { Options = options; }
public BacktrackingMatcher(string patternText, RegexOptionsEx options) : base(patternText, options) { }
public ExplicitDFAMatcher(string patternText, RegexOptionsEx options) : base(patternText, options) { Parser = createParser(Pattern); }
public static BaseMatcher CreateMatcher(AlgorithmType algorithmType, string patternText, RegexOptionsEx options) { switch (algorithmType) { case AlgorithmType.ExplicitDFA: return(new ExplicitDFAMatcher(patternText, options)); case AlgorithmType.ImplicitDFA: return(new ImplicitDFAMatcher(patternText, options)); case AlgorithmType.Backtracking: return(new BacktrackingMatcher(patternText, options)); default: throw new NotImplementedException("Algorithm not yet implemented."); } }
public ImplicitDFAMatcher(string patternText, RegexOptionsEx options) : base(patternText, options) { }