public override void OnExecute(SitcomContext runtime) { if (mContent != null) { runtime.Push(mContent); } }
public void OnExecute(SitcomContext runtime) { if (mOper != null) { runtime.Push(mOper); } }
public override void OnStop(SitcomContext runtime) { var ret = mRight != null ? mRight.Result : null; if (ret != null && ret.State == ESitcomState.Success && mLeft != null) { runtime.Push(mLeft); } }
public override void OnExecute(SitcomContext runtime) { if (mLeft != null) { runtime.Push(mLeft); } if (mUseKV) { for (int i = 0; i < mKVs.Count; i++) { runtime.Push(mKVs[i].useKey ? mKVs[i].value : mKVs[i].key); } } else { for (int i = 0; i < mKVs.Count; i++) { runtime.Push(mKVs[i].key); } } }
public void OnStop(SitcomContext runtime) { if (!mFinish) { runtime.Push(this); } else { mExecuting = false; mFinish = false; mIsReading = false; runtime.Heap.EndStack(); } }
public void OnExecute(SitcomContext runtime) { if (!mExecuting) { mExecuting = true; mFinish = false; if (!mIsReading) { BeginRead(); } runtime.Heap.BeginStack(); } if (SelectNextMark() && mCmd.Read(this)) { runtime.Push(mCmd); } else { mFinish = true; } }
public override void OnExecute(SitcomContext runtime) { runtime.Push(mLeft); runtime.Push(mRight); }