Ejemplo n.º 1
0
 /// <summary>
 /// Always succeeds. The value is a one-item collection of a single successfully parsed item; otherwise an empty collection.
 /// </summary>
 public static IParser <IReadOnlyList <T> > AtMostOnce <T>(this IParser <T> parser) => parser.AtMost(1);
Ejemplo n.º 2
0
 /// <summary>
 /// Always succeeds. The value is a one-item collection of a single successfully parsed item; otherwise an empty collection.
 /// </summary>
 public static IParser <IReadOnlyList <T> > AtMostOnce <T>(this IParser <T> parser)
 {
     return(parser.AtMost(1));
 }