Implemented parsing for imem and dmem