Split lex into a separate file