Example #1
0
        public Interpreter(FileInfo file, TextReader reader, TextWriter writer, SecureRandom randomizer)
            : base()
        {
            if (file == null)
            {
                throw new ArgumentNullException(nameof(file));
            }

            this.executor = new Executor(
                new Parser(File.ReadAllLines(file.FullName)).Parse(), reader, writer, randomizer);
        }
Example #2
0
 public Interpreter(string[] lines, TextReader reader, TextWriter writer, SecureRandom randomizer)
     : base()
 {
     this.executor = new Executor(
         new Parser(lines).Parse(), reader, writer, randomizer);
 }