Beispiel #1
0
 public static Parser <TToken, TToken> NoneOf <TToken>(params TToken[] candidates)
     where TToken : IEquatable <TToken>
 {
     return(Prims.NoneOf(candidates.AsEnumerable()));
 }
Beispiel #2
0
 public static Parser <TToken, TToken> NoneOf <TToken>(IEnumerable <TToken> candidates)
     where TToken : IEquatable <TToken>
 {
     return(Combinator.Sequence(candidates.Select(token => Prims.Satisfy(token).Not())).Bindr(Prims.Any <TToken>()));
 }