From 062ffacf88c773eec93451bf2a5bf432b492f66d Mon Sep 17 00:00:00 2001 From: Youmu Liu <105042599+Nitload-NSI@users.noreply.github.com> Date: Thu, 18 Jun 2026 19:20:14 +0800 Subject: [PATCH] regex ir emitter is working --- .../TextRegex/RegexInterpreter.IRGenerate.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/StgSharp.RegularAnalysis/TextRegex/RegexInterpreter.IRGenerate.cs b/StgSharp.RegularAnalysis/TextRegex/RegexInterpreter.IRGenerate.cs index d5caef5d..7c7e77a2 100644 --- a/StgSharp.RegularAnalysis/TextRegex/RegexInterpreter.IRGenerate.cs +++ b/StgSharp.RegularAnalysis/TextRegex/RegexInterpreter.IRGenerate.cs @@ -136,13 +136,8 @@ namespace StgSharp.RegularAnalysis.TextRegex { // no seq, invalid count operator 0 => throw new InvalidOperationException("Count operator must have a sequence to operate on"), - - // right seq - 1 => right, - - // left seq - 2 => left, - + 1 => right,// right seq + 2 => left,// left seq // both sides, invalid count operator 3 => throw new InvalidOperationException("Count operator cannot have two sequences to operate on"), _ => throw new InvalidOperationException("Unexpected sequence mask for count operator"),