part of DFA

part of getNextToken without debuging (unfinished)