/** * Bitwise OR * * @param pos the token position */ private void BITWISE_OR(int pos) { long a = (long)getTokenValue(pos-1); long b = (long)getTokenValue(pos+1); opSetDecreaseRemove(pos, a | b); } /**
/** * Bitwise XOR * * @param pos the token position */ private void BITWISE_XOR(int pos) { long a = (long)getTokenValue(pos-1); long b = (long)getTokenValue(pos+1); opSetDecreaseRemove(pos, a ^ b); } /**
/** * Bitwise RIGHT SHIFT * * @param pos the token position */ private void BITWISE_RIGHT_SHIFT(int pos) { long a = (long)getTokenValue(pos-1); int b = (int)getTokenValue(pos+1); opSetDecreaseRemove(pos, a >> b); } /**
/** * Bitwise LEFT SHIFT * * @param pos the token position */ private void BITWISE_LEFT_SHIFT(int pos) { long a = (long)getTokenValue(pos-1); int b = (int)getTokenValue(pos+1); opSetDecreaseRemove(pos, a << b); } /**
/** * Multiplication handling. * * @param pos the token position */ private void MULTIPLY(int pos) { double a = getTokenValue(pos-1); double b = getTokenValue(pos+1); opSetDecreaseRemove(pos, a * b, true); } /**
/** * Bitwise AND * * @param pos the token position */ private void BITWISE_AND(int pos) { long a = (long)getTokenValue(pos-1); long b = (long)getTokenValue(pos+1); opSetDecreaseRemove(pos, a & b); } /**
/** * Tetration handling. * * @param pos the token position */ private void TETRATION(int pos) { double a = getTokenValue(pos-1); double n = getTokenValue(pos+1); opSetDecreaseRemove(pos, MathFunctions.tetration(a, n), true); } /**
/** * Power handling. * * @param pos the token position */ private void POWER(int pos) { double a = getTokenValue(pos-1); double b = getTokenValue(pos+1); opSetDecreaseRemove(pos, MathFunctions.power(a, b), true); } /**
/** * Logical IMP * * * @param pos the token position */ private void IMP(int pos) { double a = getTokenValue(pos-1); double b = getTokenValue(pos+1); opSetDecreaseRemove(pos, BooleanAlgebra.imp(a, b) ); } /**
/** * Equality relation. * * @param pos the token position */ private void EQ(int pos) { double a = getTokenValue(pos-1); double b = getTokenValue(pos+1); opSetDecreaseRemove(pos, BinaryRelations.eq(a, b) ); } /**
/** * Not equals. * * @param pos the token position */ private void NEQ(int pos) { double a = getTokenValue(pos-1); double b = getTokenValue(pos+1); opSetDecreaseRemove(pos, BinaryRelations.neq(a, b) ); } /**
/** * Greater than. * * @param pos the token position */ private void GT(int pos) { double a = getTokenValue(pos-1); double b = getTokenValue(pos+1); opSetDecreaseRemove(pos, BinaryRelations.gt(a, b) ); } /**
/** * Lower or equal. * * @param pos the token position */ private void LEQ(int pos) { double a = getTokenValue(pos-1); double b = getTokenValue(pos+1); opSetDecreaseRemove(pos, BinaryRelations.leq(a, b) ); } /**
/** * Logical NAND * * @param pos the token position */ private void NAND(int pos) { double a = getTokenValue(pos-1); double b = getTokenValue(pos+1); opSetDecreaseRemove(pos, BooleanAlgebra.nand(a, b) ); } /**
/** * Logical NOR * * @param pos the token position */ private void NOR(int pos) { double a = getTokenValue(pos-1); double b = getTokenValue(pos+1); opSetDecreaseRemove(pos, BooleanAlgebra.nor(a, b) ); } /**
/** * Logical XOR * * * @param pos the token position */ private void XOR(int pos) { double a = getTokenValue(pos-1); double b = getTokenValue(pos+1); opSetDecreaseRemove(pos, BooleanAlgebra.xor(a, b) ); } /**
/** * Logical NIMP * * @param pos the token position */ private void NIMP(int pos) { double a = getTokenValue(pos-1); double b = getTokenValue(pos+1); opSetDecreaseRemove(pos, BooleanAlgebra.nimp(a, b) ); } /**
/** * Logical EQV * * @param pos the token position */ private void EQV(int pos) { double a = getTokenValue(pos-1); double b = getTokenValue(pos+1); opSetDecreaseRemove(pos, BooleanAlgebra.eqv(a, b) ); } /**
/** * Lower than. * * @param pos the token position */ private void LT(int pos) { double a = getTokenValue(pos-1); double b = getTokenValue(pos+1); opSetDecreaseRemove(pos, BinaryRelations.lt(a, b) ); } /**
/** * Greater or equal * * @param pos the token position */ private void GEQ(int pos) { double a = getTokenValue(pos-1); double b = getTokenValue(pos+1); opSetDecreaseRemove(pos, BinaryRelations.geq(a, b) ); } /**