wallet-core/node_modules/semver/range.bnf

17 lines
619 B
BNF
Raw Normal View History

2017-05-03 15:35:00 +02:00
range-set ::= range ( logical-or range ) *
logical-or ::= ( ' ' ) * '||' ( ' ' ) *
range ::= hyphen | simple ( ' ' simple ) * | ''
hyphen ::= partial ' - ' partial
simple ::= primitive | partial | tilde | caret
2018-09-20 02:56:13 +02:00
primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial
2017-05-03 15:35:00 +02:00
partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
xr ::= 'x' | 'X' | '*' | nr
2018-09-20 02:56:13 +02:00
nr ::= '0' | [1-9] ( [0-9] ) *
2017-05-03 15:35:00 +02:00
tilde ::= '~' partial
caret ::= '^' partial
qualifier ::= ( '-' pre )? ( '+' build )?
pre ::= parts
build ::= parts
parts ::= part ( '.' part ) *
part ::= nr | [-0-9A-Za-z]+