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();
        }
    }
Exemplo n.º 2
0
 public static int GetPrecedence(
     this NeuPrefixOperator prefixOp)
 {
     throw new Exception();
 }