LexerEngine class: Added a state transition action.