Esempio n. 1
0
        public override Runlet ExecuteRunlet(RuntimeEngine runtimeEngine)
        {
            long y = (long)runtimeEngine.Pop();
            long x = (long)runtimeEngine.Pop();

            runtimeEngine.Push(x <= y);
            runtimeEngine.UnlockValueStack();
            return(this.Next);
        }
Esempio n. 2
0
        public override Runlet ExecuteRunlet(RuntimeEngine runtimeEngine)
        {
            FunctionRunlet f = (FunctionRunlet)runtimeEngine.Pop();

            runtimeEngine.PushReturnAddress(this._next);
            return(f.Call(runtimeEngine));
        }
Esempio n. 3
0
 public override Runlet ExecuteRunlet(RuntimeEngine runtimeEngine)
 {
     Console.WriteLine($"{runtimeEngine.Pop()}");
     return(this.Next);
 }