コード例 #1
0
ファイル: SystemFunction.cs プロジェクト: Spicery/Nutmeg
        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);
        }
コード例 #2
0
ファイル: SystemFunction.cs プロジェクト: Spicery/Nutmeg
        public override Runlet ExecuteRunlet(RuntimeEngine runtimeEngine)
        {
            long n = 0;

            while (runtimeEngine.TryPop(out var d))
            {
                n += (long)d;
            }
            runtimeEngine.Push(n);
            runtimeEngine.UnlockValueStack();
            return(this.Next);
        }
コード例 #3
0
 public override Runlet ExecuteRunlet(RuntimeEngine runtimeEngine)
 {
     runtimeEngine.Push(this._ident.Value);
     return(this._next);
 }