Hi, I am trying to work out a way to properly deal with exponentiation and expressions like -1^-1.5 without having to add a new token type but so far the only way I can think of has as a side effect making - -2 a valid expression. Could it be considered so? Or should it be rejected?
Thank you!
Hi, I am trying to work out a way to properly deal with exponentiation and expressions like -1^-1.5 without having to add a new token type but so far the only way I can think of has as a side effect making - -2 a valid expression. Could it be considered so? Or should it be rejected? Thank you!