private static Parser <string> GetSolutionVersion()
 {
     return
         (from leading in Parse.WhiteSpace.Many()
          from header in Parse.String("Microsoft Visual Studio Solution File, Format Version ")
          from version in ParseString.UntilWhitespace()
          select version);
 }
Exemplo n.º 2
0
 private static Parser <Solution> Solution(string name, string filename)
 {
     return
         (from leading in Parse.WhiteSpace.Many()
          from header in Parse.String("Microsoft Visual Studio Solution File, Format Version ")
          from versionString in ParseString.UntilWhitespace()
          from newLine in Parse.WhiteSpace.Many()
          from pound in Parse.AnyChar.Until(Parse.Char('\n'))
          from projects in Project.Many()
          from throwAway in Parse.AnyChar.Many()
          select new Solution(name, filename, versionString, projects));
 }