OperatorEvaluation.Evaluate Method
Assembly: Topten.Cminor.Compiler.dll
Namespace: Topten.Cminor
Declaring Type: OperatorEvaluation
Overloads
Evaluate(UnaryOperatorType, object) | Evaluate a unary operation |
Evaluate(BinaryOperatorType, object, object) | Evaluate a binary operation |
Evaluate(UnaryOperatorType, object)
Evaluate a unary operation
public static object Evaluate(UnaryOperatorType op, object a);
Parameters
UnaryOperatorType op | The type of operation |
object a | The operand |
Returns
object | The result of the operation |
Evaluate(BinaryOperatorType, object, object)
Evaluate a binary operation
public static object Evaluate(BinaryOperatorType op, object a, object b);
Parameters
BinaryOperatorType op | The type of operation |
object a | The first operand |
object b | The second operand |
Returns
object | The result of the operation |