示例#1
0
文件: Opcode.cs 项目: CalebJ2/KOS
 protected override object ExecuteCalculation(Calculator calc)
 {
     return calc.Power(Operands);
 }
示例#2
0
文件: Opcode.cs 项目: CalebJ2/KOS
 protected override object ExecuteCalculation(Calculator calc)
 {
     return calc.Subtract(Operands);
 }
示例#3
0
文件: Opcode.cs 项目: CalebJ2/KOS
 protected override object ExecuteCalculation(Calculator calc)
 {
     object result = calc.Add(Operands);
     if (result == null)
         throw new KOSBinaryOperandTypeException(Operands, "add", "to");
     return result;
 }
示例#4
0
文件: Opcode.cs 项目: CalebJ2/KOS
 protected override object ExecuteCalculation(Calculator calc)
 {
     return calc.Multiply(Operands);
 }
示例#5
0
文件: Opcode.cs 项目: CalebJ2/KOS
 protected override object ExecuteCalculation(Calculator calc)
 {
     return calc.NotEqual(Operands);
 }
示例#6
0
文件: Opcode.cs 项目: CalebJ2/KOS
 protected virtual object ExecuteCalculation(Calculator calc)
 {
     return null;
 }
示例#7
0
文件: Opcode.cs 项目: CalebJ2/KOS
 protected override object ExecuteCalculation(Calculator calc)
 {
     return calc.LessThan(Operands);
 }
示例#8
0
 protected override object ExecuteCalculation(Calculator calc)
 {
     return calc.NotEqual(Argument1, Argument2);
 }
示例#9
0
 protected override object ExecuteCalculation(Calculator calc)
 {
     return calc.LessThan(Argument1, Argument2);
 }
示例#10
0
 protected override object ExecuteCalculation(Calculator calc)
 {
     return calc.Multiply(Argument1, Argument2);
 }
示例#11
0
 protected override object ExecuteCalculation(Calculator calc)
 {
     return calc.Subtract(Argument1, Argument2);
 }