Unary operation node — prefix negation, the only unary operator.
Binding power 25 sits between multiplication and power, so -1d4 is -(1d4) (negate the roll) rather than (-1)d4, while -2**2 is -(2**2).
-1d4
-(1d4)
(-1)d4
-2**2
-(2**2)
Unary operation node — prefix negation, the only unary operator.
Binding power 25 sits between multiplication and power, so
-1d4is-(1d4)(negate the roll) rather than(-1)d4, while-2**2is-(2**2).