Add init function for the lexer.