> 1
ERROR: 1: missing major version
> 1-2
ERROR: 1-2: missing minor version
> 1-2.3
ERROR: 1-2.3: missing snapshot field
> 1-2.3.4.5
ERROR: 1-2.3.4.5: bad patchlevel
> 1-2.3.4-5
program: 1	major: 2	minor: 3	patch: 4
> 1-2.3-5
program: 1	major: 2	minor: 3	snapshot: 5
> 1-2.3-5-6
program: 1	major: 2	minor: 3	snapshot: 5-6
> 1-2.3-5.6
program: 1	major: 2	minor: 3	snapshot: 5.6
