Created
June 15, 2024 11:52
-
-
Save anzdaddy/be7d679223d8c59b3910efa06392f56d to your computer and use it in GitHub Desktop.
Simplified semver grammar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
semver -> ver ("-" pre)? ("+" build)?; | |
ver -> num "." num "." num; | |
pre -> (alnum | num):"."; | |
build -> (alnum | \d+):"."; | |
num -> "0"|[1-9]\d*; | |
alnum -> [-A-Za-z0-9]* [-A-Za-z] [-A-Za-z0-9]*; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment