Parser. Move codeParser logic to separate file