Esempio n. 1
0
 public static Bridge2079.Parser <IEnumerable <TValue> > Many <TValue>(Bridge2079.Parser <TValue> parser) =>
 i => new Bridge2079.Result <IEnumerable <TValue> >();
Esempio n. 2
0
 public static Bridge2079.Parser <IEnumerable <TValue1> > Bad2 <TValue1, TValue2>(this Bridge2079.Parser <TValue1> p, Bridge2079.Parser <TValue2> sep) =>
 from head in p
 from tail in Many(
     from _ in sep
     from t in p
     select t
     )
 select(IEnumerable <TValue1>) ToEnumerable(head).Concat(tail);
Esempio n. 3
0
 public static Bridge2079.Parser <TValue2> SelectMany <TValue, TIntermediate, TValue2>(this Bridge2079.Parser <TValue> parser, Func <TValue, Bridge2079.Parser <TIntermediate> > selector, Func <TValue, TIntermediate, TValue2> projector) =>
 i =>
 {
     var res = parser(i);
     return(new Bridge2079.Result <TValue2>());
 };