Writen a test function in  Lexer,and fixed a bug