clean up lexer code