Implement a parser for import