Trying to build a shell lexer based on a state transition table.