Add Copyright, Licensed and PreVer nodes.
This MR contains the implementation + tests of the recently added PreVer
and PreId
nodes.
Version <- 'v' MajorVer '.' MinorVer '.' PatchVer ('-' PreVer)
PreVer <-- PreId ('.' PreId)*
PreId <- (word / DASH)+
NOTE: The child nodes of PreId
are insignificant and the contents of PreId
are too.
Because of this it is not possible to use node.AdoptFrom(n)
. This would result in a PreVer
node with an empty string as value. Instead node.Value += n.Value
is used.
Edited by Quint Daenen