Fix XOR precedence

XOR should have lower precedence than AND and higher than OR
Merge pull request #748 from chrisleishman/xor_precedence

Fix XOR precedence