Implemented the number state of lexer