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

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

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