예제 #1
0
            public PatternMatcher(Sequences sequences, LinkIndex[] patternSequence, HashSet<LinkIndex> results)
                : base(sequences)
            {
                _patternSequence = patternSequence;
                _linksInSequence = new HashSet<LinkIndex>(patternSequence.Where(x => x != Links.Null && x != ZeroOrMany));
                _results = results;

                // TODO: Переместить в PatternMatcher
                _pattern = CreateDetailedPattern();
            }
예제 #2
0
 public Matcher(Sequences sequences, LinkIndex[] patternSequence, HashSet<LinkIndex> results)
     : base(sequences)
 {
     _patternSequence = patternSequence;
     _linksInSequence = new HashSet<LinkIndex>(patternSequence.Where(x => x != Links.Null && x != ZeroOrMany));
     _results = results;
 }