public Script_Parser(string fn) { if (fn == null) { Error.Throw("Got null filename"); } if (!System.IO.File.Exists(fn)) { Error.Throw("Filename '{0}' does not exist", fn); } // Strangely, testing if a file is readable seems awkward. // Is the idiomatic practice actually to just try to open the file and complain when it fails ??? filename = fn; tokens = new List<Token>(); tmp = new parse_info_holder(); }
public Script_Parser(string fn) { if (fn == null) { Error.Throw("Got null filename"); } if (!System.IO.File.Exists(fn)) { Error.Throw("Filename '{0}' does not exist", fn); } // Strangely, testing if a file is readable seems awkward. // Is the idiomatic practice actually to just try to open the file and complain when it fails ??? filename = fn; tokens = new List <Token>(); tmp = new parse_info_holder(); } // Script_Parser()