private void prepareToFindNextToken() { dfa.reset(); handler.moveBackward(); removeSpaces(); }
private void handleNonAcceptState() { if (dfa.isInErrorState()) handleErrorState(); else if (dfa.isInSpaceState()) dfa.reset(); }
private void handleErrorState() { dfa.reset(); handler.printLexicalException(); Compiler.errorOccured(); popToken(); }
public void reset() { dfa.reset(); }