public static NeuOperation Execute( this NeuInterpreter interpreter, NeuPrefixOperator op, NeuExpression operand) { switch (op.OperatorType) { case NeuUnaryOperatorType.Increment: return(interpreter.PrefixIncrement(operand)); /// case NeuUnaryOperatorType.Decrement: return(interpreter.PrefixDecrement(operand)); /// default: throw new Exception(); } }
public static int GetPrecedence( this NeuPrefixOperator prefixOp) { throw new Exception(); }