libs/librtlnumber/main.cpp
/***
 *     __   __       ___  __   __           ___       __       
 *    /  ` /  \ |\ |  |  |__) /  \ |       |__  |    /  \ |  | 
 *    \__, \__/ | \|  |  |  \ \__/ |___    |    |___ \__/ |/\| 
 *                                                             
 * 	This is used for testing purposes only, unused in ODIN as the input is already preprocessed
 */


This is used for testing purposes only, unused in ODIN as the input is already preprocessed
This is used for testing purposes only unused in ODIN as the input is already preprocessed
static std::string arithmetic(std::string op, std::string a_in)
{
	VNumber a(a_in);
	return (
		(op == "to_unsigned")?	V_UNSIGNED(a):
		(op == "to_signed")	 ?	V_SIGNED(a):
		(op == "~")		?		V_BITWISE_NOT(a):
		(op == "-")		?		V_MINUS(a):
		(op == "+")		?		V_ADD(a):
		(op == "&")		?		V_BITWISE_AND(a):
		(op == "|")		?		V_BITWISE_OR(a):
		(op == "^")		?		V_BITWISE_XOR(a):
		(op == "~&")	?		V_BITWISE_NAND(a):
		(op == "~|")	?		V_BITWISE_NOR(a):
		(op == "~^"	
		|| op == "^~")	?		V_BITWISE_XNOR(a):
		(op == "!")		?		V_LOGICAL_NOT(a):
								bad_ops(op)
	).to_full_string();
}
static std :: string arithmetic ( std :: string op , std :: string a_in ) { VNumber a ( a_in ) ; return ( ( op == " " ) ? V_UNSIGNED ( a ) : ( op == " " ) ? V_SIGNED ( a ) : ( op == " " ) ? V_BITWISE_NOT ( a ) : ( op == " " ) ? V_MINUS ( a ) : ( op == " " ) ? V_ADD ( a ) : ( op == " " ) ? V_BITWISE_AND ( a ) : ( op == " " ) ? V_BITWISE_OR ( a ) : ( op == " " ) ? V_BITWISE_XOR ( a ) : ( op == " " ) ? V_BITWISE_NAND ( a ) : ( op == " " ) ? V_BITWISE_NOR ( a ) : ( op == " " || op == " " ) ? V_BITWISE_XNOR ( a ) : ( op == " " ) ? V_LOGICAL_NOT ( a ) : bad_ops ( op ) ) . to_full_string ( ) ; }
__   __       ___  __   __           ___       __
    /  ` /  \ |\ |  |  |__) /  \ |       |__  |    /  \ |  |
    \__, \__/ | \|  |  |  \ \__/ |___    |    |___ \__/ |/\|
__ __ ___ __ __ ___ __ / ` / \ | \ | | |__ ) / \ | |__ | / \ | | \ __ \ __ / | \ | | | \ \ __ / |___ | |___ \ __ / | / \ |
/* return Process Operator via ternary */