Added:
stat-> break;
const->nil
Refactored Scanner.  Extracted token termination code into checkState method