add method to Parser to check wether state is really finished(debuging)