public static BnfiTermCollectionTL PlusListTL(Type elementType, BnfTerm bnfTermElement, BnfTerm delimiter = null) { var bnfiTermCollection = BnfiTermCollectionTL.CreateContractible(typeof(List <>), elementType); MakePlusRule(bnfiTermCollection, delimiter, bnfTermElement); return(bnfiTermCollection); }
public static BnfiTermCollectionTL PlusListTL(BnfTerm bnfTermElement, BnfTerm delimiter = null) { var bnfiTermCollection = BnfiTermCollectionTL.CreateContractible(typeof(List <object>)); // could be "CreateMovable(typeof(List<>), typeof(object))" as well MakePlusRule(bnfiTermCollection, delimiter, bnfTermElement); return(bnfiTermCollection); }