Handles ^^ and XOR as logical xor operations

I may change how this works later, as this version will generate
compiler warnings regarding parenthesis.