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