예제 #1
0
        public static BnfiTermCollectionTL PlusListTL(Type elementType, BnfTerm bnfTermElement, BnfTerm delimiter = null)
        {
            var bnfiTermCollection = BnfiTermCollectionTL.CreateContractible(typeof(List <>), elementType);

            MakePlusRule(bnfiTermCollection, delimiter, bnfTermElement);
            return(bnfiTermCollection);
        }
예제 #2
0
        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);
        }