示例#1
0
文件: Opcode.cs 项目: kevin-ye/KOS
 protected virtual object ExecuteCalculation(Calculator calc)
 {
     return(null);
 }
示例#2
0
文件: Opcode.cs 项目: kevin-ye/KOS
 protected override object ExecuteCalculation(Calculator calc)
 {
     return(calc.LessThanEqual(argument1, argument2));
 }
示例#3
0
文件: Opcode.cs 项目: kevin-ye/KOS
 protected override object ExecuteCalculation(Calculator calc)
 {
     return(calc.Power(argument1, argument2));
 }
示例#4
0
文件: Opcode.cs 项目: WazWaz/KOS
 protected override object ExecuteCalculation(Calculator calc)
 {
     return calc.Subtract(argument1, argument2);
 }
示例#5
0
文件: Opcode.cs 项目: kevin-ye/KOS
 protected override object ExecuteCalculation(Calculator calc)
 {
     return(calc.GreaterThan(argument1, argument2));
 }
示例#6
0
文件: Opcode.cs 项目: WazWaz/KOS
 protected override object ExecuteCalculation(Calculator calc)
 {
     return calc.Multiply(argument1, argument2);
 }
示例#7
0
文件: Opcode.cs 项目: WazWaz/KOS
 protected override object ExecuteCalculation(Calculator calc)
 {
     object result = calc.Add(argument1, argument2);
     // TODO: complete message
     if (result == null) throw new ArgumentException("Can't add ....");
     return result;
 }
示例#8
0
文件: Opcode.cs 项目: WazWaz/KOS
 protected override object ExecuteCalculation(Calculator calc)
 {
     return calc.NotEqual(argument1, argument2);
 }
示例#9
0
文件: Opcode.cs 项目: WazWaz/KOS
 protected virtual object ExecuteCalculation(Calculator calc)
 {
     return null;
 }
示例#10
0
文件: Opcode.cs 项目: WazWaz/KOS
 protected override object ExecuteCalculation(Calculator calc)
 {
     return calc.LessThan(argument1, argument2);
 }