public Lexer(string text) { if (text == null) { throw new ArgumentNullException("text"); } this.reader = new StringReader(text); this.isConsole = false; }