Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new compiler object given a source file
        /// </summary>
        /// <param name="file">Source file name</param>
        public Compiler(string file)
        {
            // Initialize members
            references = new List<string>();
            this.file = file;

            errors = new Errors();
        }
Ejemplo n.º 2
0
 /*------------------------------------------------------------------------*
  *----- SCANNER DESCRIPTION ----------------------------------------------*
  *------------------------------------------------------------------------*/
 public Parser(Scanner scanner)
 {
     this.scanner = scanner;
     errors = new Errors();
 }