Пример #1
0
        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);
        }
Пример #2
0
 public PdlBlockRule(PdlRule rule)
 {
     Rule      = rule;
     _hashCode = ComputeHashCode();
 }