public static Parser <TToken, IEnumerable <T> > SepEndBy0_Optimized <TToken, T>( Parser <TToken, T> parser, Parser <TToken, Unit> sep) { return(InternalCombinator.SepBy0_Optimized(parser, sep) .Bindl(sep.Optional())); }
public static Parser <TToken, IEnumerable <T> > SepBy0 <TToken, T>( this Parser <TToken, T> parser, Parser <TToken, Unit> sep) { /* * return InternalCombinator.SepBy0(parser, sep) * .Select(delayedSeq => delayedSeq.AsEnumerable()); */ return(InternalCombinator.SepBy0_Optimized(parser, sep)); }