parse code into mem init