QB64 and other Basics treat the ^ operator as left-associative while other programming languages that have an exponentiation operator treat it as right-associative, for example Python and FORTRAN
doing a web search is inconclusive some assert that there's no consensus whether it should be left or right associative while other state that it's right-associative
Mathematica and Maxima treats it as right-associative while Maple gives the error message that the power operator is non-associative
from a mathematical perspective which is right? non-associative or right-associative?
You might enjoy this article. The author did a survey of how several languages treat this - it was very interesting!
https://codeplea.com/exponentiation-associativity-optionsJust for fun, I played around with +2^+2^+3 and -2^-2^-3 in gw-basic, qbasic, vb.net, qb64 and vbscript. gw-basic and qbasic gave identical results in all my tests. The other 3 either failed or gave different results in some tests. It was interesting, but as noted later on, hopefully no one would actually use such an expression without parenthesis.