change behabvior of Lexer::analyze method for interface usability