示例#1
0
        public static IEnumerable <T> ParseMany <T>(this IInlineParser <T> parser, ParserContext context, Subject subject)
            where T : class
        {
            var parts = new List <T>();

            while (!subject.EndOfString)
            {
                var part = parser.Parse(context, subject);
                if (part == null)
                {
                    break;
                }
                parts.Add(part);
            }
            return(parts);
        }
示例#2
0
 public static IEnumerable <T> ParseMany <T>(this IInlineParser <T> parser, ParserContext context, string input)
     where T : class
 {
     return(parser.ParseMany(context, new Subject(input)));
 }
示例#3
0
 public DestParanthesesParser(IInlineParser <Inline> contentParser)
 {
     ContentParser = contentParser;
 }
示例#4
0