Esempio n. 1
0
        private static List <string> ParseList(VPPTextParser parser, Func <VPPTextParser, bool> isEnd)
        {
            List <string> p = new List <string>();

            while (true)
            {
                if (isEnd(parser))
                {
                    break;
                }

                p.Add(parser.EatAnyUntil(isEnd, x => x.Is(',')));

                if (isEnd(parser))
                {
                    break;
                }

                parser.Eat(',');
                parser.EatWhiteSpace();
            }

            return(p);
        }