Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="openABAP.Compiler.Compiler"/> class.
 /// </summary>
 /// <param name="filename">Filename.</param>
 public Compiler(String filename)
 {
     //new MemoryStream( System.Text.Encoding.UTF8.GetBytes( source ) );
     this.TempFilename = filename;
     this.Scanner      = new Coco.Scanner(filename);
     this.Parser       = new Coco.Parser(this.Scanner);
     this.Parser.errors.errorStream = this.Errors;
     this.Parser.Context            = this;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="openABAP.Compiler.Compiler"/> class.
 /// </summary>
 /// <param name="filename">Filename.</param>
 public Compiler( String filename)
 {
     //new MemoryStream( System.Text.Encoding.UTF8.GetBytes( source ) );
     this.TempFilename = filename;
     this.Scanner = new Coco.Scanner(filename);
     this.Parser  = new Coco.Parser(this.Scanner);
     this.Parser.errors.errorStream = this.Errors;
     this.Parser.Context = this;
 }