Exemple #1
0
 public FileParser(string fileName, ParsingParams prams, bool process, bool imported, string[] searchDirs, bool throwOnError)
 {
     FileParser._throwOnError = throwOnError;
     this.imported = imported;
     this.prams = prams;
     this.searchDirs = searchDirs;
     this.fileName = ResolveFile(fileName, searchDirs);
     if (process)
         ProcessFile();
 }
Exemple #2
0
 public FileParser(string fileName, ParsingParams prams, bool process, bool imported, string[] searchDirs, bool throwOnError)
 {
     FileParser._throwOnError = throwOnError;
     this.imported = imported;
     this.prams = prams;
     this.fileName = ResolveFile(fileName, searchDirs);
     this.searchDirs = Utils.RemovePathDuplicates(Utils.Concat(searchDirs, Path.GetDirectoryName(this.fileName)));
     if (process)
         ProcessFile();
 }