Пример #1
0
 private void CreateLineMatcher()
 {
     lineMatcher = new LineMatcher(Children);
 }
Пример #2
0
        private LineMatcher BuildMatcherForAllLines()
        {
            var t = this;
            if (matchAllLines == null)
            {
                var lexers = new Dictionary<Type, Lexer>();
                while (t != null)
                {
                    BuildMatcherForAllLines(t.Children, lexers);

                    t = t.parent;
                }
                matchAllLines = new LineMatcher(lexers.Values);
            }
            return matchAllLines;
        }