Beispiel #1
0
        protected BaseMatcher(string patternText, RegexOptionsEx options)
        {
            Options = options;

            Pattern = BasePattern.CreatePattern(patternText);
            Pattern = TransformAST(Pattern);
        }
Beispiel #2
0
        protected BaseMatcher(string patternText, RegexOptionsEx options)
        {
            Options = options;

            Pattern = BasePattern.CreatePattern(patternText);
            Pattern = TransformAST(Pattern);
        }
Beispiel #3
0
        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 RegexOptionsASTTransform(RegexOptionsEx options)
 {
     Options = options;
 }
Beispiel #6
0
 public BacktrackingMatcher(string patternText, RegexOptionsEx options)
     : base(patternText, options)
 {
 }
 public ExplicitDFAMatcher(string patternText, RegexOptionsEx options)
     : base(patternText, options)
 {
     Parser = createParser(Pattern);
 }
 public BacktrackingMatcher(string patternText, RegexOptionsEx options)
     : base(patternText, options)
 {
 }
Beispiel #9
0
        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)
 {
 }
 public ExplicitDFAMatcher(string patternText, RegexOptionsEx options)
     : base(patternText, options)
 {
     Parser = createParser(Pattern);
 }
 public ImplicitDFAMatcher(string patternText, RegexOptionsEx options)
     : base(patternText, options)
 {
 }