コード例 #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);
コード例 #2
0
ファイル: Parser-Repeat.cs プロジェクト: ejball/Parsing
 /// <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));
 }