lexer: fix some format bug in switch
removed some unnecessary deps