Exemple #1
0
 public static void Main(string[] args)
 {
     XmlConfigurator.Configure();
     const string input = @"C:\shared.datastore\repository\personal\dev\projects\March\trunk\data\sample-input.march";
     var parser = new ModelParser(input);
     Logger.Debug("Parsing {0}", input);
     bool parsingWasSuccessful = parser.Parse();
     Debug.WriteLineIf(parsingWasSuccessful, "Successfully parsed input");
     Debug.WriteLineIf(!parsingWasSuccessful, "Error - failed to parse the input.");
     Debug.WriteLineIf(!parsingWasSuccessful && (parser.err.ErrorCount > 0), parser.err.ErrorDump());
 }
Exemple #2
0
 public void TestMethod1()
 {
     var parser = new ModelParser(CommandLineOptions.ArchPath);
     bool parsingWasSuccessful = parser.Parse();
     var arch = parser.Architecture;
 }