protected IList <T> ParseList <T>(string text, Func <GitNumstatParser, Rule <char> > ruleFetcher)
 {
     return(new List <T>(Grammars.ParseWith(text, ruleFetcher).ToIEnumerable <T>()));
 }
Beispiel #2
0
 public static IEnumerable <Diff> Load(string diffContent)
 {
     return(new List <Diff>(Grammars.ParseWith <GitDiffParser>(diffContent, x => x.Diffs).ToIEnumerable <Diff>()));
 }
 protected T Parse <T>(string text, Func <GitNumstatParser, Rule <char> > ruleFetcher)
 {
     return(Grammars.ParseWith(text, ruleFetcher).As <T>());
 }
 public static ISExpression Parse(string sexpr)
 {
     return(Grammars.ParseWith <SExpressionParser>(sexpr, x => x.SExpression).As <ISExpression>());
 }