Пример #1
0
 private void prepareToFindNextToken() {
   dfa.reset();
   handler.moveBackward();
   removeSpaces();
 }
Пример #2
0
 private void handleNonAcceptState() {
   if (dfa.isInErrorState()) handleErrorState();
   else if (dfa.isInSpaceState()) dfa.reset();
 }
Пример #3
0
 private void handleErrorState() {
   dfa.reset();
   handler.printLexicalException();
   Compiler.errorOccured();
   popToken();
 }
Пример #4
0
 public void reset() {
   dfa.reset();
 }