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)); }
public ParserFabric(string rootRuleSetName, params RuleSet[] ruleSets) { this.RootRuleSetName = rootRuleSetName; this.RuleSets = new ReadOnlyCollection <RuleSet>(ruleSets.EmptyCollectionIfNull()); _analyzerGraph = AnalyzerGraphBuilder.BuildGraph(rootRuleSetName, ruleSets); }