reset method

void reset([
  1. bool resetInput = true
])
inherited

reset the parser's state */

Implementation

void reset([bool resetInput = true]) {
  if (resetInput) inputStream.seek(0);
  errorHandler.reset(this);
  context = null;
  _syntaxErrors = 0;
  matchedEOF = false;
  setTrace(false);
  _precedenceStack.clear();
  _precedenceStack.add(0);
  interpreter?.reset();
}