Esempio n. 1
0
        protected BaseMatcher(string patternText, RegexOptionsEx options)
        {
            Options = options;

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

            Pattern = BasePattern.CreatePattern(patternText);
            Pattern = TransformAST(Pattern);
        }
Esempio n. 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;
 }
Esempio n. 6
0
 public BacktrackingMatcher(string patternText, RegexOptionsEx options)
     : base(patternText, options)
 {
 }
Esempio n. 7
0
 public ExplicitDFAMatcher(string patternText, RegexOptionsEx options)
     : base(patternText, options)
 {
     Parser = createParser(Pattern);
 }
 public BacktrackingMatcher(string patternText, RegexOptionsEx options)
     : base(patternText, options)
 {
 }
Esempio n. 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.");
            }
        }
Esempio n. 10
0
 public ImplicitDFAMatcher(string patternText, RegexOptionsEx options)
     : base(patternText, options)
 {
 }
Esempio n. 11
0
 public ExplicitDFAMatcher(string patternText, RegexOptionsEx options)
     : base(patternText, options)
 {
     Parser = createParser(Pattern);
 }
Esempio n. 12
0
 public ImplicitDFAMatcher(string patternText, RegexOptionsEx options)
     : base(patternText, options)
 {
 }