示例#1
0
 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 };
 }
示例#2
0
 // =====================================================================
 //  Constructor
 // =====================================================================
 public static Parser FromFile(string filename)
 {
     var reader = FileReader.FromFile(filename);
     var lx = new Lexer(reader);
     return new Parser { lexer = lx };
 }