refactor 'Lexer' class by Annotator and Scanner