Simplify lexer constructor