Lexer expose createLexer factory method instead function Lexer