text: public virtual void Reset(){if (((ITokenStream)InputStream) != null){((ITokenStream)InputStream).Seek(0);}_errHandler.Reset(this);_ctx = null;_syntaxErrors = 0;_precedenceStack.Clear();_precedenceStack.Add(0);ATNSimulator interpreter = Interpreter;if (interpreter != null){interpreter.Reset();}}