Ejemplo n.º 1
0
 private void CreateLineMatcher()
 {
     lineMatcher = new LineMatcher(Children);
 }
Ejemplo n.º 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;
        }