Ejemplo n.º 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.fileName   = ResolveFile(fileName, searchDirs);
     this.searchDirs = searchDirs.Concat(new string[] { Path.GetDirectoryName(this.fileName) }).Distinct().ToArray();
     if (process)
     {
         ProcessFile();
     }
 }
Ejemplo n.º 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.searchDirs = searchDirs;
     this.fileName   = ResolveFile(fileName, searchDirs);
     if (process)
     {
         ProcessFile();
     }
 }
Ejemplo n.º 3
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();
     }
 }
Ejemplo n.º 4
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();
 }
Ejemplo n.º 5
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();
 }