BigInteger evalExclusiveOrExpression(AstNode exprAst) {
int noChildren = exprAst.getNumberOfChildren();
BigInteger result = evalToInt(exprAst.getChild(0));
for(int i = 2; i < noChildren; i+=2){
AstNode operand = exprAst.getChild(i);
result = result.xor(evalToInt(operand));
}
return result;
}