Move parsing of imports to lexer