示例#1
0
        internal static AnalyzerGraphInfo BuildGraph(string rootRuleSetName, RuleSet[] ruleSets)
        {
            var builder       = new AnalyzerGraphBuilder(rootRuleSetName, ruleSets);
            var analyzerGraph = builder.BuildGraphImpl();

            return(new AnalyzerGraphInfo(analyzerGraph, builder.OmitGraph, ruleSets));
        }
示例#2
0
        public ParserFabric(string rootRuleSetName, params RuleSet[] ruleSets)
        {
            this.RootRuleSetName = rootRuleSetName;
            this.RuleSets        = new ReadOnlyCollection <RuleSet>(ruleSets.EmptyCollectionIfNull());

            _analyzerGraph = AnalyzerGraphBuilder.BuildGraph(rootRuleSetName, ruleSets);
        }