public static NeuInteger Multiply( this NeuInterpreter interpreter, NeuInteger lhs, NeuInteger rhs) { return(new NeuInteger(lhs.Value * rhs.Value)); }
public static NeuInteger Add( this NeuInterpreter interpreter, NeuInteger lhs, NeuInteger rhs) { return(new NeuInteger(lhs.Value + rhs.Value)); }
public static NeuInteger Subtract( this NeuInterpreter interpreter, NeuInteger lhs, NeuInteger rhs) { return(new NeuInteger(lhs.Value - rhs.Value)); }
public static NeuInteger Divide( this NeuInterpreter interpreter, NeuInteger lhs, NeuInteger rhs) { return(new NeuInteger(lhs.Value / rhs.Value)); }
public static NeuOperation PrefixIncrement( this NeuInterpreter interpreter, String name, NeuInteger intResult) { var updatedResult = new NeuInteger(intResult.Value + 1); /// if (!interpreter.SetVar(name, updatedResult)) { throw new Exception(); } /// return(updatedResult); }