/// <summary> /// Class representing a subtraction fo two symbols. /// </summary> public class Subtract : BinaryCommand { public override void ExecuteBy(IVirtualMachine vm) { vm.Execute(this); }
/// <summary> /// Class representing a multiplication of two symbols. /// </summary> public class Multiply : BinaryCommand { public override void ExecuteBy(IVirtualMachine vm) { vm.Execute(this); }
public override void ExecuteBy(IVirtualMachine vm) { vm.Execute(this); }
/// <summary> /// Class representing a command that will pop current values from the /// scope's symbols. /// </summary> public class PopLocals : ScopeOperation { public override void ExecuteBy(IVirtualMachine vm) { vm.Execute(this); }
/// <summary> /// Class representing a command that will push new default values into the /// scope's symbols. /// </summary> public class PushDefaults : ScopeOperation { public override void ExecuteBy(IVirtualMachine vm) { vm.Execute(this); }
/// <summary> /// Class representing a LESS OR EQUAL THAN operation. /// </summary> public class LessOrEqualThan : BinaryCommand { public override void ExecuteBy(IVirtualMachine vm) { vm.Execute(this); }
/// <summary> /// Class representing a GREATER THAN operation. /// </summary> public class GreaterThan : BinaryCommand { public override void ExecuteBy(IVirtualMachine vm) { vm.Execute(this); }