Ejemplo n.º 1
0
        private static void ConvertToXml(Options options)
        {
            string path = options.InputFile;
            VerifyPath(path, "sln");

            var tokenizer = new SlnTokenizer(File.ReadAllText(path));
            tokenizer.Initialise();
            tokenizer.SetSkip(true, TokenType.WhiteSpace);

            SolutionParser solutionParser = new SolutionParser(tokenizer);
            var document = solutionParser.Execute();

            var converter = new SlnToXmlConverter();
            string outputName = !String.IsNullOrEmpty(options.OutputFile) ? options.OutputFile : ConvertInput(path);
            converter.WriteDocument(document, outputName);
        }
Ejemplo n.º 2
0
        private static void ConvertToXml(Options options)
        {
            string path = options.InputFile;

            VerifyPath(path, "sln");

            var tokenizer = new SlnTokenizer(File.ReadAllText(path));

            tokenizer.Initialise();
            tokenizer.SetSkip(true, TokenType.WhiteSpace);

            SolutionParser solutionParser = new SolutionParser(tokenizer);
            var            document       = solutionParser.Execute();

            var    converter  = new SlnToXmlConverter();
            string outputName = !String.IsNullOrEmpty(options.OutputFile) ? options.OutputFile : ConvertInput(path);

            converter.WriteDocument(document, outputName);
        }
Ejemplo n.º 3
0
 public SolutionParser(SlnTokenizer tokenizer) : base(tokenizer)
 {
     _tokenizer = tokenizer;
 }