From 90277406e842c0506b47174a4d67e39a6ccc4784 Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Fri, 28 Nov 2025 15:24:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dgoto=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E6=97=B6=E7=BC=93=E5=AD=98=E5=88=86=E6=94=AF=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=B7=B3=E8=BD=AC=E7=82=B9=E7=9A=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DoRunner/JumpRuntimePointerRunner.cs | 1 + RScriptContext.cs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/DoRunner/JumpRuntimePointerRunner.cs b/DoRunner/JumpRuntimePointerRunner.cs index e81d607..53891ce 100644 --- a/DoRunner/JumpRuntimePointerRunner.cs +++ b/DoRunner/JumpRuntimePointerRunner.cs @@ -17,6 +17,7 @@ namespace Convention.RScript.Runner { depth = jumpResult.Item1; lastLayer = jumpResult.Item2; + context.CurrentRuntimePointer = target; } else { diff --git a/RScriptContext.cs b/RScriptContext.cs index 3669965..b90ea34 100644 --- a/RScriptContext.cs +++ b/RScriptContext.cs @@ -266,9 +266,16 @@ namespace Convention.RScript public int StepCount { get; private set; } +#if DEBUG + public List StepStack = new(); +#endif + internal object RunNextStep(ExpressionParser parser) { StepCount++; +#if DEBUG + StepStack.Add(CurrentSentence); +#endif var sentence = CurrentSentence; try {