Pratt parsing 2; same level associativity
Version 4 has an error in it. Try parsing 4^3^2. Parser 4 gives (4^3)^2 = 4096. Google gives 262144 as does Parser 5alpha. They parse it as 4^(3^2). So how does Pratt parsing handle this? First, note that it is only an issue for operators with the same binding power. Different binding powers are there [...]
Also tagged parsing