IEnumerable <ProductionModel> Rule(PdlRule rule) { var nonTerminal = GetFullyQualifiedNameFromQualifiedIdentifier(rule.QualifiedIdentifier); var productionModel = new ProductionModel(nonTerminal); foreach (var production in Expression(rule.Expression, productionModel)) { yield return(production); } yield return(productionModel); }
public PdlBlockRule(PdlRule rule) { Rule = rule; _hashCode = ComputeHashCode(); }