move lex_all into the lexer module