From 70051b46a526730befb4748418dbf25fa6bfa135 Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Wed, 15 Oct 2025 23:47:51 +0800 Subject: [PATCH] =?UTF-8?q?namespace=E5=B7=B2=E7=BB=8F=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RScriptContext.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/RScriptContext.cs b/RScriptContext.cs index f7322b4..40275b2 100644 --- a/RScriptContext.cs +++ b/RScriptContext.cs @@ -57,6 +57,11 @@ namespace Convention.RScript public string content; public List info; public Mode mode; + + public override string ToString() + { + return $"{mode.ToString()}/: {content}"; + } } public interface IRSentenceMatcher @@ -131,6 +136,7 @@ namespace Convention.RScript { namespaceLayers.Push(i); this.NamespaceLabels[namespaceName] = i; + namespaceName = ""; } else { @@ -278,12 +284,13 @@ namespace Convention.RScript { int current = CurrentRuntimePointer; DoEnterNamespace(parser); + CurrentRuntimePointer = labelPointer; for (int e = NamespaceLayer[NamespaceLabels[sentence.content]]; ;) { RunNextStep(parser); if (CurrentRuntimePointer >= Sentences.Length) break ; - else if (CurrentRuntimePointer != e) + else if (CurrentRuntimePointer == e) break; else CurrentRuntimePointer++;