public override void Execute(NetStack stack) { dynamic r = stack.Pop(); dynamic l = stack.Pop(); stack.Push(l + r); //throw new ArgumentException(string.Format("Cannot add operands of type {0} and {1}", l.GetType().Name, r.GetType().Name)); }
public override void Execute(NetStack stack) { stack.Push(this); }
public override void Execute(NetStack stack) { Console.Write("input> "); stack.Push(Console.ReadLine()); }
public override void Execute(NetStack stack) { var label = stack.Pop<string>(); stack.Push(new FunctionLabel(label)); }
public override void Execute(NetStack stack) { var top = stack.Pop(); var bottom = stack.Pop(); stack.Push(top).Push(bottom); }
public override void Execute(NetStack stack) { dynamic r = stack.Pop(); dynamic l = stack.Pop(); stack.Push(l > r); }
public override void Execute(NetStack stack) { var l = stack.Pop(); var r = stack.Pop(); stack.Push(l.Equals(r)); }
public override void Execute(NetStack stack) { stack.Push(stack.Pop<long>() - 1); }
public override void Execute(NetStack stack) { var val = stack.Pop(); stack.Push(val).Push(val); }
public override void Execute(NetStack stack) { stack.Push(value); }
public override void Execute(NetStack stack) { dynamic variable = stack.Pop(); stack.Push(++variable); }
public override void Execute(NetStack stack) { var offset = stack.Pop<long>(); var value = stack.Peek(offset); stack.Push(value); }
public override void Execute(NetStack stack) { stack.Push(new Parser().Parse(stack.Pop<string>())); }