Sam Heard wrote: > ... I do not think we want 1.1.1 unless people can come up with a > sensible reason to have three levels. I can't think of any benefit.
In that case the production rule would be simpler:
'v' V_NONZERO_DIGIT { V_DIGIT } [ '.' V_DIGIT { V_DIGIT } ]
V_DIGIT: [0-9]
V_NONZERO_DIGIT: [1-9]
And the version_id part of the regex would be simpler too:
v[1-9]\d*(\.\d+)?
- Peter

