public static Parser FromString(string pgm, string filename = "default.rx") { var reader = FileReader.FromString(pgm, filename); var lx = new Lexer(reader); return new Parser { lexer = lx }; }
// ===================================================================== // Constructor // ===================================================================== public static Parser FromFile(string filename) { var reader = FileReader.FromFile(filename); var lx = new Lexer(reader); return new Parser { lexer = lx }; }