- Changed the Lexer fsm to check the current state to see if it is done.