List numbers within given ranges
Minkolang 0.13, 12 bytes
nd1+?.n~Lr$N

Try it here.
Explanation
n      Take number from input (-1 if input is devoid of numbers)
d1+    Duplicate and add 1
?.     If this is 0, stop.
n~     Get number from input and negate it (because of the '-')
L      Pops b,a and pushes a,a+1,a+2,...,b-1,b
r      Reverses list
$N     Outputs whole stack as numbers