Parse version numbers into major/minor/patch values